git init // initialize
git add. // add
git commit -m 'project initialization'
Create a remote repository in github
Connect to a remote warehouse
git remote add origin <url>
Submit to a remote repository
git push -u origin master
After writing the code in the project
git add .
git commit -m 'knowledge point 1'
git tag 01_ knowledge point 1
git tag // View tag has several
git status
git log // check for updates
git reset <commit>
git reset --hard b3b607f // return to the initial project
git status
After the change again
git add .
git commit -m 'knowledge point 2'
git tag 02_ knowledge point 2
git tag
git push --tags // submit all tag to a remote repository
There might be asked to enter account number and password github
After the success of the project in view tag to github
How to download tag when local
Not directly downloadZIP
Open gitbase terminal at the files you want to store the folder
git clone <url>
In the letter you want to use micro applet directly into the project. Select the clone down the folder.
git status // Clear bug
git checkout 01_ knowledge point of view 1 // knowledge of the relevant code 1
git checkout 02_ knowledge point 2 // Check knowledge of the relevant code 2