Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
git commonly used commands
- Creating a branch
git branch 分支名称
- Switching branch
git checkout 要切换的分支名称
- Check local codes state
git status
- Add the modified code to the cache
git add .
- Submit code to a local warehouse
git commit -m"备注内容"
- Submit to a remote branch
git push origin 分支名称
- Pull remote repository code
git pull origin 分支名称