I have two branches:
- Development
- Feature
Development branch has one commit, namely 'init'. I branched feature branch of development branch, so feature branch should have the commit for 'init' as well.
I will make a change and commit this change to feature branch:
$> git checkout development
$> git commit -am "init"
$> git push
$> git checkout -b feature
$> git commit -am "change"
$> git push
Now another developer will add a change to development branch:
$> git checkout development
$> git commit -am "another change"
$> git push
Say that I would like to merge the feature branch into the development branch, will this cause any problems now that the development branch is ahead by one change because of what the other developer did?
$> git checkout development
$> git merge feature
If I would like to continue working on the feature branch, since something is still missing, the feature is still incomplete and I already merged feature branch into the development branch. Do I need to merge the development branch into the feature branch so that the feature branch is not missing anything? Or is this not necessary at all to continue my work?