git: how to turn a clone into a new branch? -
this question has reply here:
move recent commit(s) new branch git 7 answers how can force changes remote branch 5 answersi've cloned master repository , have been making bunch of edits , local commits. i've realised should new branch in remote repository. i'd force remote system, how force new branch remote repos?
assuming have't pushed yet , history looks like
a -- b -- c -- d -- e ^ ^ | | origin/master master
you can following:
git branch feature git reset origin/master
to this:
a -- b -- c -- d -- e ^ ^ | | | feature origin/master,master
git
No comments:
Post a Comment