Skip to content

Instantly share code, notes, and snippets.

@Tymski
Last active October 16, 2020 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tymski/6bf20a99fdc78b873e7cbc5ea7a4cb62 to your computer and use it in GitHub Desktop.
Save Tymski/6bf20a99fdc78b873e7cbc5ea7a4cb62 to your computer and use it in GitHub Desktop.
Some git flow commands
// 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
// 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