[Github]Enjoy Github With VS2010

[Env]
VS2010(Installed)
Git-2.9.0-64-bit.exe(Command Line)
GitExtensions-2.48.05-SetupComplete.msi(GUI)

[STEP]
1) Register in Github & Create a new repository
https://github.com

2) Install GitExtensions-2.48.05-SetupComplete.msi(GUI) with Default Config.

3) Open Git Bash & Setting

$ git config --global user.name "YourName"
$ git config --global user.email "YourEmail@example.com"
$ git config --global color.ui auto

4) Add SSH Key

#Generate SSH Key
$ ssh-keygen -t rsa -C "YourEmail@example.com"
Generating public/private rsa key pair.
Enter file in which to save the key(/xxx/.ssh/id_rsa):<Enter>
Enter passphrase (empty for no passphrase):<password>
Enter same passphrase again:<password>

“YourEmail@example.com” is as same as the account of Github.

Login Github, Access “Settings”->”SSH and GPG keys”->”New SSH key” & Add SSH Key (/xxx/.ssh/id_rsa.pub)

5) Change your workspace & Clone Project
git clone git@github.com:xxx/xxx.git

6) Git
git status
git add “file”
git commit
git push

Recommend:
http://www.voidcn.com/article/p-busqcype-np.html

相关文章
相关标签/搜索