Install Git on Windows

1. Install msysgit
http://code.google.com/p/msysgit/

2. Configurations

$ git config --global user.name "kim"
$ git config --global user.email xqpmjh@gmail.com


3. Public-Key for Github
$ ssh-keygen -t rsa -C "xqpmjh@gmail.com"

Copy the content of \.ssh\id_rsa.pub to GitHub -> SSH Public Key -> “Add another public key”

4. Test your connection
$ ssh git@github.com
ERROR: Hi tekkub! You’ve successfully authenticated, but GitHub does not provide shell access
Connection to github.com closed.


5. Create your project – trickle’s Repository
$ cd d:/www
$ mkdir trickle
$ cd trickle
$ git init


6. Adding new files
$ touch README
$ vi README
$ git add README
$ git commit -m 'My readme for git project';


7. Push your commits to master branch
$ git remote add origin git@github.com:xqpmjh/Trickle.git
$ git push origin master


8. Checkout your project
$ cd d:/www/test
$ git clone git://github.com/xqpmjh/Trickle.git


9. Pulling from master branch
$ git pull -v --progress "origin" master

Posted in Git | Tagged | Leave a comment