What are those red remote branches on Git?

怎甘沉沦 提交于 2020-06-11 16:34:46

问题


I'm new to git and trying to set up a repository.

I got two branches (master and xyz).

My workflow so far:

  1. change to specific branch, e.g. git checkout xyz
  2. make changes
  3. git add .
  4. git commit -am 'whatevermessage'
  5. git push origin xyz

Everything works so far. But when I git branch -a to view all my branches, I get the following output:

master
* xyz
remotes/origin/master
remotes/origin/xyz

while remotes/origin/master and remotes/origin/xyz are displayed in red color. I tried to figure out what the red color means but I couldn't find anything. So, assuming that red is equivalent to some kind of error: what does the red color mean and how can I fix it?


回答1:


Yellow is local branch while red is a remote branch.

By default:

[color "branch"]
    local = yellow
    remote = red
    plain = normal


来源:https://stackoverflow.com/questions/29131981/what-are-those-red-remote-branches-on-git

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!