Some command line operations of git are recorded.

git init ------- initialize, create a repository

 

git add ------- add files to the cache

 

git commit ------- commit version -m enter remarks

 

git branch ------- view branch

 

git branch name ----- create a branch under the current branch

 

git checkout name ------ switch branch

 

git checkout -b name ------ create branch at the same time and switch

 

git log ------------ view log

 

git reset ------- version rollback

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324888756&siteId=291194637