Skip to content

Instantly share code, notes, and snippets.

@Digi-Cazter
Last active February 16, 2022 20:56
Show Gist options
  • Save Digi-Cazter/578c8a370ab38a9a7d32230c4d34a8fd to your computer and use it in GitHub Desktop.
Save Digi-Cazter/578c8a370ab38a9a7d32230c4d34a8fd to your computer and use it in GitHub Desktop.
Git Command - Branch Flow
git checkout master
git pull origin master
git branch <feature_branch>
git checkout <feature_branch>

<Make Code Changes>  

git add .
git commit -m "Message for commit"
git push origin <feature_branch>

<Create PR and Merge>  

git checkout master
git pull origin master
git branch -D <feature_branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment