Git Branching and Merging

时间:2015-06-26 10:27:24

标签: git

Being new to Git, how to handle the following scenario:

I'm working on a bug fix and I want to do that in a separate branch. I have a remote Git repo and I have cloned it. So when I do a git branch on my local file system, I can see that I'm pointing to the master. I then created a new branch using:

git checkout -b myBranchName

Is this newly created branch available in the remote repo?
Should I push it explicitly?
What is the best workflow for this?

1 个答案:

答案 0 :(得分:2)

  

这个新创建的分支是否在远程仓库中可用?

不,分支机构是私人"分支,这意味着它是一个本地分支,直到你将其推送到远程。

  

我应该明确推送吗?

  

最佳工作流程是什么?

我建议使用gitflow