📜  流行的 git 命令 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:35.539000             🧑  作者: Mango

代码示例1
git fetch --all

# create new branch from origin `main` branch.
git checkout -b prefix/new_branch_name origin/staging

# commit and push your work to your own branch.
git commit -m "(scope?): "
git push

# update new codes from origin `staging` branch.
git pull --rebase origin staging
git push --force