1. First set up warehousing on GitHub. The process is not verbose.
2. Notice the HTTPS,SSH and other things in the lower right corner.
3. There are many more tools to upload to git. I use the Cygwin here.
As for Cygwin himself to the Internet to download. The installation is also a search for itself. No longer wordy.
4. When the installation is complete, open cygwin.
Switch to the specified disk F disk: CD F
4. Create a local warehouse. A and B. Here, A, a, simulation of two developers. Git init a,git init B
5. Enter a folder: CD a
6. Clone a project on GitHub.
Now open the A folder and you'll see what's on GitHub.
7. Add files and folders to the downloaded project and submit them to GitHub.
Use git add xx to add one or more git Add.
8.git commit-m "description information"
(7, 82 can also be merged: git commit-am "description information")
9. Commit code: Git push Origin master
10. Enter your account and password. Submit complete
If it appears:
Error: Prompt: Update is rejected because the latest commit of your current branch is behind its corresponding remote branch
That's it: Git push Origin +master.
You can also connect GitHub before committing:
Connection command:
Git remote add Origin https://github.com/xxx.xxx.git.
11. If you want to update your project: Git pull is OK in the specified project.
git push and pull data to GitHub.