如何在 Git 中獲取當前分支名稱? - How to get the current branch name in Git?

問題:

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?
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章