Skip to content

Instantly share code, notes, and snippets.

@paneru-rajan
Last active December 19, 2017 05:27
Show Gist options
  • Save paneru-rajan/8c8ddbe6761900efd5fd768c64877457 to your computer and use it in GitHub Desktop.
Save paneru-rajan/8c8ddbe6761900efd5fd768c64877457 to your computer and use it in GitHub Desktop.
[GIT steps] Steps to create branch push and commit #git #branching #steps

Git Steps

  1. Create a issue on gitlab with name according to:
bug-001-login-fix
feat-002-model-add
  1. Create lcoal branch with same name as issue

Follow the followings steps:

1. Add (git add <.>)
2. Commit branch (git commit -m 'msg')
3. Git push origin <This Branch>
4. Git Checkout develop
5. git pull origin develop
6. git checkout <This branch>
7. git rebase develop (This nullify many merge issues)
8. git checkout develop
9. git merge --no-ff <This Branch>
10. git push origin develop
11. Remove created branch(local/orgin) after merging with develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment