Git basic command interpreter

git init: in a given folder to initialize git that is below this folder to add a .git folder

git add:. When a file is modified to move the file to the cache all sequence changes

git commit -m "TXT" to change the file into the upload sequence and annotate

 

git branch XXX: Creating a branch

git branch -a: to see how many branches there

git checkout XXX(this is branch): switch to selected branch

git log -oneline: log only shows one line for each state ID number is the ID number of the total first few

git checkout ID (short) time to view the file ID number of state

git revert ID (short) just delete the ID number corresponding to commit

Everything changes after the hard delete this ID number - git reset ID (short)

git pull <url> from the file copy down github

git push <url> upload files to github

Guess you like

Origin www.cnblogs.com/shwzh1990/p/12289707.html