Skip to content

Zee's Blog

zee.balogh.sk

Menu

  • Projects
  • About

Git: Make branch become the master

git checkout better_branch
git merge --strategy=ours master    # keep the content of this branch, but record a merge
git checkout master
git merge better_branch             # fast-forward master up to the merge

Resources

  • https://stackoverflow.com/questions/2763006/make-the-current-git-branch-a-master-branch
  • https://www.atlassian.com/git/tutorials/using-branches/merge-strategy
  • https://stackabuse.com/git-merge-branch-into-master/
  • https://git-scm.com/docs/git-merge
Git: Make branch become the master
Tagged on: Git
admin 21.05.202021.05.2020 Uncategorized
  • ← VBoxManage: error: Resize medium operation for this format is not implemented yet!
  • Docket Cheet Sheet →

Search

Copyright © 2025 Zee's Blog. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.
  • Projects
  • About