I am using gitlab and we are following gitflow methodology so we have one master branch and then dev branch we have taken from the master, we do not disturb master right now at all.
From dev we take future branches lets say future 1 and future 2 and now suppose some other developer is working on future 1 and I am working on future 2 branch.
Now in order to commit my changes of future branch 2 after doing internal testing back to the dev branch, I need to make sure that I am in sync with dev, the branch always, so I do the below process in a sequence of steps, please let me know are they in correct order or not.
- the current branch is future
- stash my changes switch to the dev
- branch git pull ( take the latest of dev)
- switch to future 2 branch
- git stash pop
- since I am using intellij idea so I go to VCS option in the menu
- vcs git branches --> dev ---> merge into current
- Resolve conflicts
- vcs git commit push