Install Git on Windows

1. Install msysgit http://code.google.com/p/msysgit/
2. Configurations [codesyntax lang="bash"]
$ git config --global user.name "kim"
$ git config --global user.email xqpmjh@gmail.com
[/codesyntax]
3. Public-Key for Github [codesyntax lang="bash"]
$ ssh-keygen -t rsa -C "xqpmjh@gmail.com"
[/codesyntax] Copy the content of \.ssh\id_rsa.pub to GitHub -> SSH Public Key -> "Add another public key"
4. Test your connection [codesyntax lang="bash"]
$ ssh git@github.com
ERROR: Hi tekkub! You’ve successfully authenticated, but GitHub does not provide shell access
Connection to github.com closed.
[/codesyntax]
5. Create your project - trickle's Repository [codesyntax lang="bash"]
$ cd d:/www
$ mkdir trickle
$ cd trickle
$ git init
[/codesyntax]
6. Adding new files [codesyntax lang="bash"]
$ touch README
$ vi README
$ git add README
$ git commit -m 'My readme for git project';
[/codesyntax]
7. Push your commits to master branch [codesyntax lang="bash"]
$ git remote add origin git@github.com:xqpmjh/Trickle.git
$ git push origin master
[/codesyntax]
8. Checkout your project [codesyntax lang="bash"]
$ cd d:/www/test
$ git clone git://github.com/xqpmjh/Trickle.git
[/codesyntax]
9. Pulling from master branch [codesyntax lang="bash"]
$ git pull -v --progress "origin" master
[/codesyntax]
Posted in Git| Tagged |

Comments are closed.