别着急,坐和放宽
git switch -c <新分支的名称>
git switch <已有分支名称>
在当前分支前面会有*显示
删除一个已经合并的分支。如果未合并,需强制删除:
未追踪文件:列出那些尚未添加到版本控制的文件。
已修改的文件:列出工作目录中已修改但尚未暂存的文件。
已暂存的文件:列出已经被 git add 添加到暂存区,准备提交的文件。
git add 的步骤git push 推送该分支git branch <分支名称>
git branch
git branch -d <branch_name>
git branch -D <branch_name>
git branch -m <old_branch_name> <new_branch_name>
git status
git add <file>
git add .
git commit -m "Fix bug"
git commit --amend
git commit -a -m "Fix bug"
git push
git push -u origin <branch>
git clone <repository>
git log
git merge <branch>
git fetch
git reset <file>
git diff
git stash
git tag <tagname>