Last active
October 16, 2020 11:35
-
-
Save Tymski/6bf20a99fdc78b873e7cbc5ea7a4cb62 to your computer and use it in GitHub Desktop.
Some git flow commands
This file contains 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
// Create a bew branch and move there | |
git checkout -b feature/myAwesomeFunctionality develop | |
// ... Implement the feature, add, commit, as normal | |
// push changes | |
git push --set-upstream origin feature/myAwesomeFunctionality |
This file contains 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
// merge into develop with saving the tree | |
git checkout develop | |
git pull | |
git merge --no-ff feature/myAwesomeFunctionality | |
git push | |
// delete branch locally | |
git branch -d feature/myAwesomeFunctionality | |
// delete branch remotely | |
git push origin --delete feature/myAwesomeFunctionality |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment