Let\'s say I have a develop branch. I create a feature branch from this to develop a feature. Once the feature is developed, it is merged back into develop. Pretty much like
I am using the "Git Bash" console to freeze the branch:
[Solution worked Best during Oct 2018]
Don't have Git Bash?
Here is how to install and use the Git Bash console:
Reference:
https://github.com/msysgit/msysgit/releases/
https://help.github.com/articles/set-up-git/
How to freeze a branch
git checkout {branch-to-keep-alive}
git merge --no-ff {branch-to-freeze}
git checkout {branch-to-freeze}
git tag -a -m "{your-description}" {tag-for-the-branch-to-freeze}
Convention: create the tag like this: {branch-name}_frozen
git checkout {branch-to-keep-alive}
git branch -d {branch-to-freeze}
git push --tags origin {branch-to-keep-alive}
git push origin :{branch-to-freeze}
How to merge a branch with master:
git checkout {your-working-branch}
Git merge master
git checkout master
git merge development
Git Bash Console: