Gitbub on the use of the same as the other source control tools, personal source control and sharing a big weapon, and vs2010 and vs2013 configuration is not any different, simply made a article configuration instructions
First, register GitHub
1, github.com Registration
2, because private libraries are required to pay, so directly choose 0 tariff, which is GitHub to promote the idea of open source
3, sign up after directly select new repository new Public Library
4, create a new library, such as: SignalR
5, complete, you can keep this page, you need to copy the SSH address here
Second, vs Installation extension
1. Open vs Extension Manager
2. Install git Source Control Provider
3, install Git Extensions, this will open a link of Microsoft download, download the file: Gitextensions24703setupcomplete.msi
A, first git Extensions, except the brackets in the selection, the rest of the direct next ( tick msysgit and kdiff3--select OpenSSH)
b, in the GIT extensions installation will eject the installation KDIFF3, has been installed next
C, KDIFF3 installed after the pop-up git Stup, the next installation
Third, vs configuration source code Manager
1. Tools--Option--source control select Git Source control Provider
2. Set git and git extensions paths (C:\Program Files (x86) \git\bin\git.exe | C:\Program Files (x86) \gitextensions\gitextensions.exe)
3, the solution right there will be git management options, create Git repository, the solution folder will generate two files,. gitignore and. Tfignore, very clean version management mode
4, the solution right-click--GIT--SETTINGS,SHH Select OpenSSH
Four, configure Shh key, and then the native generated key recorded on GitHub, and then you can check in the code
1. Solution Right-click--git--git Bash (Git Base in vs2010)
2. Git identity configuration, type:
git config--global user.name "Whyfine"
git config--global user.email "[Email protected]"
3. Generate SSH KEY, type:
Ssh-keygen-c "[Email protected]", VS10 appears unkown key attempt (ssh-keygen-t-rsa-c "[email protected]")
After three returns, key is generated under the red path.
3, back to the GitHub website, settings--ssh keys--add SSH key--The path generated under the id_rsa.pub with TXT open, copied to the text box below the key
4. Push remote configuration, solution right--git--push--popup settings Direct OK
A, you can just keep the page's SSH address directly paste Direct push
(SSH address opens the bottom right corner of the GitHub project and switches by clicking the link)
B, can also save configuration, remote management--from a configuration name--url paste Shh address--save
5.
Five, the use and mainstream source control tools are roughly the same
1. Language Settings: Git Extensions--setting--appearacnce--chinaese
2. Cloning project on GitHub: Gitext clone--Library Address--clone
3. Pull the item on GitHub: Git extensions--pull--Library Address--pull
4. Add source code control:
4.1. Right-click Folder--gitext create...--initialization
4.2, Git Extensions--push (see four. 4)
4.3. Gitext Commit
5, reset (reset changes):
5.1, vs in--git--undo File changes
5.2. Files or folders--git extensions--reset file changes
Gitbub in vs2010, vs2013