git common basic operations

git basic operation commands

1, git init initialization, generate a .git file in the current directory

2, git add . Add all files of the current road

3, git commit -am "commit suggestion" Submit the files added in the previous step to the local warehouse

4, git remote add origin [email protected]:repos/xxx/xxx/xxx.git Add remote warehouse address5

, git branch test Create a local branch named "test" 6

, git branch list all local branches7

、git checkout test switch the local branch to test

8, git push origin test:test submit the local branch test to the remote branch test

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326701271&siteId=291194637