git - Where is HEAD in the in the tree if I merge a branch, do some commits and then checkout the branch again -
new git. person using git repository. (my organization not use git.) here's basic outline of workflow. name branches according number in our bug tracker. make changes, commit them branch. once things merge branch master git repository stays reflective of what's on our development server. move on other issues.
some time later testing may send original bug worked on. if checkout branch again head still @ recent commit position in tree?
i apologize if terminology off. here's diagram hope helps.
if checkout branch again head still @ recent commit position in tree?
no, head @ merge commit (when did git checkout master ; git merge yourbranch_bug1
)
testing may send original bug worked on
if testing working on master
, , need additional work on bug1
, can reset branch on master (in order fix bug1 in recent context possible)
git checkout -b yourbranch_bug1
from git checkout
man page:
if
-b
given,<new_branch>
created if doesn’t exist; otherwise, reset. transactional equivalent of:
$ git branch -f <branch> [<start point>] $ git checkout <branch>
Comments
Post a Comment