问题:
I'm from a Subversion background and, when I had a branch, I knew what I was working on with "These working files point to this branch".我来自 Subversion 背景,当我有一个分支时,我知道我在做什么,“这些工作文件指向这个分支”。
But with Git I'm not sure when I am editing a file in NetBeans or Notepad++, whether it's tied to the master or another branch.但是使用 Git 我不确定何时在 NetBeans 或 Notepad++ 中编辑文件,它是否绑定到 master 或另一个分支。
There's no problem with git
in bash, it tells me what I'm doing. bash 中的git
没有问题,它告诉我我在做什么。
解决方案:
参考一: https://stackoom.com/question/QCl0参考二: How to get the current branch name in Git?