Skip to content

github configuration

Nilesh edited this page Sep 5, 2011 · 1 revision

##github setup

macbook:~ nilesh$ workon workhere  
(workhere)macbook:~ nilesh$ cd ~/domains/workhere/  
(workhere)macbook:workhere nilesh$ git config --global user.name "Nilesh"  
(workhere)macbook:workhere nilesh$ git config --global user.email [email protected]  
(workhere)macbook:workhere nilesh$ mkdir fab-canvas  
(workhere)macbook:workhere nilesh$ cd fab-canvas  
(workhere)macbook:fab-canvas nilesh$ git init  
Initialized empty Git repository in /Users/nilesh/domains/workhere/fab-canvas/.git/  
(workhere)macbook:fab-canvas nilesh$ touch README  
(workhere)macbook:fab-canvas nilesh$ git add README  
(workhere)macbook:fab-canvas nilesh$ git commit -m 'first commit'  
[master (root-commit) ba5c664] first commit  
 0 files changed, 0 insertions(+), 0 deletions(-)  
 create mode 100644 README  
(workhere)macbook:fab-canvas nilesh$ git remote add origin [email protected]:lvnilesh/fab-canvas.git  
(workhere)macbook:fab-canvas nilesh$ git push -u origin master  
Counting objects: 3, done.  
Writing objects: 100% (3/3), 207 bytes, done.  
Total 3 (delta 0), reused 0 (delta 0)  
To [email protected]:lvnilesh/fab-canvas.git  
 * [new branch]      master -> master  
Branch master set up to track remote branch master from origin.  
(workhere)macbook:fab-canvas nilesh$  
(workhere)macbook:fab-canvas nilesh$ cd ..  
(workhere)macbook:workhere nilesh$ git clone [email protected]:lvnilesh/fab-canvas.wiki.git  
Cloning into fab-canvas.wiki...  
remote: Counting objects: 3, done.  
remote: Total 3 (delta 0), reused 0 (delta 0)  
Receiving objects: 100% (3/3), done.  
(workhere)macbook:workhere nilesh$ pwd  
/Users/nilesh/domains/workhere  
(workhere)macbook:workhere nilesh$ ls -l   
drwxr-xr-x  19 nilesh  staff  646 Sep  3 20:57 bin  
drwxr-xr-x   3 nilesh  staff  102 Sep  3 20:55 build  
drwxr-xr-x   4 nilesh  staff  136 Sep  4 16:27 fab-canvas  
drwxr-xr-x   4 nilesh  staff  136 Sep  4 16:40 fab-canvas.wiki  
drwxr-xr-x   3 nilesh  staff  102 Sep  3 20:53 include  
drwxr-xr-x   3 nilesh  staff  102 Sep  3 20:53 lib  
Clone this wiki locally