git 笔记

#1   git reset 取消放到暂存区文件 例如 git reset .idea/*

git reset HEAD filename :回退文件,将文件暂存区回退到工作区  //也可以使用 git reset filename

#2     git 设置 branch 

git branch --set-upstream-to=origin/master master

原文地址:https://www.cnblogs.com/whm-blog/p/10444626.html