13. Upload it to Github using a command
such as "git push -u origin feature/gromit".
origin/
main
origin/feature/gromit
origin/feature/penguin
origin/
dev
16. Gromit has completed the
implementation of all review features
and proceeded to merge the review
branch into their own and dev branch.
feature/gromit
feature
/review
feature
/review
feature
/review
feature
/review
dev dev
feature/gromit
18. The evil team leader, wallace, found out
that Gromit had implemented the review
function, and asked him to implement
the notice function immediately.
feature/gromit
feature
/notice
19. Hey gromit, I implemented
login function and pushed
it to origin/dev
Gromit, which needed a login function,
decided to stop implementing the notice
function and bring the login function to
the local branch.
20. Gromit stores the code he writes in the
staging area. Because he can't move a
branch with modified code in it.
Unmodified Modified Staged Saved
git stash git checkout dev git pull
21. Modified
Gromit made the login feature made by
Penguin available in the feature/notice
branch.
Unmodified Staged Saved
git checkout feature/gromit
git checkout feature/notice
git pull dev
git pull feature/gromit
git stash apply