Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

HSLdevcom/jore4-deploy-branch-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of no-ff merges

Master branch

master branch with a linear history:

master

Development branch

master branch is periodically merged to dev branch.

git checkout dev
git merge --no-ff master

dev

Test branch

dev branch is periodically merged to test branch.

git checkout test
git merge --no-ff dev

test

Production branch

test branch is periodically merged to prod branch.

git checkout prod
git merge --no-ff test

prod

All branches

all

Observations

  • The "all branches" view gets complicated quite fast, but individual dev/test/prod branches look ok
  • You can edit the commit message when performing a merge, e.g. for adding some semantic meaning to the merge:
    • "Merge for release 1.2.3"
  • Plain git rebase will discard merge commits
    • If you accidentally make a local commit to e.g. dev branch and use rebase to remove it, you might accidentally also remove the "merge branch 'master' into dev" -commits.
    • git rebase -i --rebase-merges [commit] will preserve merge commits

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors