Application scenarios
When you want to put the code on the remote branch after making local modifications without affecting the current branch
Process analysis
1.在本地创建一个分支(test
git checkout -b test
2.查看当前状态
git status
3.添加到暂存区
git add .
4.查看状态
git status
5.提交
git commit -m "feat: 新修改 "
6.建立远程连接提交修改
git push -u origin test
**撤销本地上一次提交 -- 方便测试完成后提交到指定分支
git reset HEAD^