TIP: using the VS plug-in git Extensions + git Source Control provider can be done using a graphical interface, actually, as with the command line,
Here the main use of the command line to start, personally think Git Extensions
+ Git Source Control provider These two plug-ins use the command line is also necessary to install, so you can clearly see in VS inside the project file synchronization
There's a plus sign in front of the file+: It is not added to the repository, there is a lock is added to the repository (Add,commit)
After adding the repository, if you make a change to save, there will be a√
(In fact, the direct git status can be seen with the command line.)
I have modified resource.h ...
- In vs a project directory, git inside
Open Calculator This project,
- Git init library in git:
Then go to VS and look inside
It can also be in VS
- The status then looks at the
Equivalent to the "browse" in the VS plugin--submit--
- Below git add file1 file2 ... corresponding gitextension loading
git commit-m xxxx; corresponding gitextension submission
- If you have modified who in VS, in Git bash, use git status to view OK, then add commit;
- if syncing to GitHub ... 3. Play Gitbash gitshell
add remote repository git remote add origin [email protected]:p ath/repo-name.git git push-u Origin master Git push origin master
Go to GitHub to create a warehouse, then have SSH and HTTPS to choose from, and then go to
Span style= "font-family: ' Helvetica Neue ', Helvetica, Arial, Sans-serif;" > to associate a remote library
- To the local is also with 3. Topsy Gitbash Gitshell
From the remote clone library to the local git clone [email protected]:feng1o/xxxx. Git
You can also clone directly using the HTTP protocol
Go to GitHub to create a library, the remote library is ready, and the next step is to git clone clone a local library with a command: (he will clone it into the folder you are currently opening without creating the library locally)
$ git clone [email protected]:michaelliao/gitskills.gitCloning into ‘gitskills‘...remote:Countingobjects:3, done.remote:Total3 (delta 0), reused 0 (delta 0)Receivingobjects:100% (3/3), done.$ cd gitskills$ lsREADME.md
Specific pictures See: Http://note.youdao.com/share/?id=8dedf270acc328828cd83646971af6e6&type=note
6.gitbash Synchronous vs Engineering