git commonly used commands

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.
This link: https://blog.csdn.net/qq_43193386/article/details/100215447

git commonly used commands

  1. Creating a branch
git branch 分支名称
  1. Switching branch
git checkout  要切换的分支名称
  1. Check local codes state
git status
  1. Add the modified code to the cache
git add .
  1. Submit code to a local warehouse
git commit -m"备注内容"
  1. Submit to a remote branch
git push origin  分支名称
  1. Pull remote repository code
git pull  origin 分支名称

The above is the basic common commands

Guess you like

Origin blog.csdn.net/qq_43193386/article/details/100215447