msysgit - How should I keep my git project branch up to date with master? -
let's have master
branch , project
branch, both on our remote origin
. work being done in project
branch, bug fix needs go master
can deployed immediately. when project done, want able squash commits in project single commit , merge master
.
usually feature branches (that not pushed origin
), keep them date merely rebasing master
, going on our merry way, because project
own branch on origin
, i'm not sure how keep history way want (commits master
, new project
commits, no merge commits ideally) due safeguards rewriting history on remote branches. deleting remote project
, recreating correct history, suboptimal.
i'm okay rewriting history on remote project
because team of 2 , understand implications , willing ridiculously careful. how accomplish it?
you can merge braches in git
git checkout project git merge origin/master
that merge changes master has project, long came same ancestor.
Comments
Post a Comment