Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
development:git:start [2020/07/27 11:02]
kalenpw [Branches and Merging]
development:git:start [2021/07/01 10:24] (current)
kalenpw
Line 15: Line 15:
   - ''git merge new-branch %%--%%no-ff''   - ''git merge new-branch %%--%%no-ff''
   - ''git push''   - ''git push''
 +
 +----
 +===== Replace one branch with another =====
 +Useful if working on complete overhauls in a separate branch
 +<code bash>
 +git checkout better_branch
 +git merge --strategy=ours master 
 +git checkout master
 +git merge better_branch 
 +</code>
  
 ---- ----
Line 34: Line 44:
 git remote set-url origin git@github.com:kalenpw/repo.git git remote set-url origin git@github.com:kalenpw/repo.git
 </code> </code>
 +----