Git workflow idea to push an unfinished local branch to remote for backup purposes
- by Zubin
Say I'm currently working on a new feature which I've branched off of the 'dev' branch and I've been working for several days and it's not yet ready to be merged with 'dev' and pushed.
Although I have made several commits and have been pulling changes to dev and then merging dev into my feature branch to keep myself updated.
Here's my question. Is it a good idea to push my feature branch to a new branch (with the same name as my local branch) onto origin (say GitHub) just for back-up purposes and later on when it's merged into 'dev' and/or 'master' delete it from origin.