Register the user to https://github.com/, then point to Start a project, create the warehouse
Remember this address.
Go to https://git-scm.com/downloads. Download git to install locally, (best option to modify path when installing)
For example, I have a project under the C drive called Mydemo, right click on Mydemo, choose "Git Bash here"
1. Git init to build a git repository (there will be more ". Git" hidden directories in this directory)
2. Git Add. Add all the files in the current directory to the index (add+ spaces + dots)
3. Git commit-m "First commit" confirmation plus information
4. Git remote add origin https://github.com/likehc/Test.git associated address
5. Git pull origin Master for conflict prevention
6. Git push-u origin master push
(You'll be asked to enter GitHub's username and password in the process)
The upload succeeds as shown in the movie.
vs how to synchronize with this code?
VS Install gitsccprovider.vsix,pc on install Gitextensions
For example, I want to download the project to the MyProjects directory of E-drive
You can enter E:\MyProjects at the command prompt, and then
git clone https://github.com/likehc/Test.git download to local
PS: Each push, will always have a user name and password, you can enter
git config--global credential.helper store
Will modify the. Gitconfig under the current user, join
[Credential]
Helper = Store
Project upload to GitHub