-
-
Save fabdelgado/1076bd1f0e0cf9475a5294e017f48820 to your computer and use it in GitHub Desktop.
To create a branch from a tag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-Go to the starting point of the project | |
>> git checkout origin master | |
-fetch all objects | |
>> git fetch origin | |
-Make the branch from the tag | |
>> git branch new_branch tag_name | |
-Checkout the branch | |
>> git checkout new_branch | |
-Push the branch up | |
>> git push origin new_branch | |
ex. | |
git checkout origin master | |
git fetch origin | |
git branch release_a_branch release_a_tag | |
git checkout release_a_branch | |
git push origin release_a_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment