Git相关整理以及学习

1、取消还未进入暂存区的修改

git checkout + 文件名

2、取消已经进入暂存区但是还未提交的修改

git reset HEAD + 文件名

3、清理在远程仓库已经被删除的本地分支

git remote prune origin --dry-run

git remote prune origin

原文地址:https://www.cnblogs.com/mrnx2004/p/9836590.html