version control - Can I create local branches in Git without creating remote branches when I merge to remote? -
i don't believe right way use git it's i've been told do: don't create new remote branches! might ask separate question on workplace.se trying him use git better.
i'm working in agile environment , i'm used creating new branch each story. boss wants 1 branch each epic (split dev, uat , live).
how can keep local environment clean while complying wishes? i've looked @ git rebase
i'm not sure or won't have side-effects.
so, recap, i'm trying create local branches without creating remote branches when merge.
this possible git!
it sounds best thing create branch locally , merge in before pushing. you'd push epic branch once you'd merged local feature branch it.
a workflow might this:
1. git pull my-epic 2. git checkout -b my-local-working-branch 3. make awesome code changes, including commits. 4. git checkout my-epic 5. git pull 6. git merge my-local-working-branch 7. git branch -d my-local-working-branch 8. git push
do think (or it) work?