Please do not continue if you have not learned the content covered in these assignments. It is important to learn the material. However if, like me, you find yourself needing to complete arbitrary tasks for classes you are capable of testing out of - but its not offered. Please continue...
README: To use this quickly, copy and paste the entire block of code in the 'console' using CTRL-V. They have been written so you do not need to copy each line, one-by-one
git commit;
git commit;
git branch bugFix;
git checkout bugFix;
git checkout -b bugFix;
git commit;
git checkout master;
git commit;
git merge bugFix;
git checkout -b bugFix;
git commit;
git checkout master;
git commit;
git checkout bugFix;
git rebase master;
git checkout C4;
git checkout C4^;
git branch -f master C6;
git branch -f bugFix C0;
git checkout C1;
git reset local~1;
git checkout pushed;
git revert pushed;
git cherry-pick C3 C4 C7;
git rebase -i master~4 --aboveAll;
For the solution, order the commits as C3, C5, C4. You may need to omit or pick commits.
git checkout master;
git cherry-pick C4;
git rebase -i caption~2 --aboveAll;
git commit --amend;
git rebase -i caption~2 --aboveAll;
git branch -f master caption;
1) For the solution, order the commits as C3, C2. You may need to omit or pick commits.
2) For the solution, order the commits as C2'', C3'. You may need to omit or pick commits.
git checkout master;
git cherry-pick C2;
git commit --amend;
git cherry-pick C3;
git tag v0 C1;
git tag v1 C2;
git checkout C2;
git commit;
git rebase master bugFix;
git rebase bugFix side;
git rebase side another;
git rebase another master;
git branch bugWork master~^2~;
git checkout one;
git cherry-pick C4 C3 C2;
git checkout two;
git cherry-pick C5 C4 C3 C2;
git branch -f three C2;
git clone;
git commit;
git checkout o/master;
git commit;
git fetch;
git pull;
git clone;
git fakeTeamwork master 2;
git commit;
git pull;
git clone;
git commit;
git commit;
git push;
git clone;
git fakeTeamwork;
git commit;
git pull --rebase;
git push;
git fetch;
git rebase o/master side1;
git rebase side1 side2;
git rebase side2 side3;
git rebase side3 master;
git push;
git checkout master;
git pull;
git merge side1;
git merge side2;
git merge side3;
git push;
git checkout -b side o/master;
git commit;
git pull --rebase;
git push;
git push origin master;
git push origin foo;
git push origin master~1:foo;
git push origin foo:master;
git fetch origin master~1:foo;
git fetch origin foo:master;
git checkout foo;
git merge master;
git push origin :foo;
git fetch origin :bar;
git pull origin bar:foo;
git pull origin master:side;
learn-git-branching-solution
learn-git-branching-main
learn-git-branching-remote
learn git branching solution
learn git branching main
learn git branching remote
There's a new addition to the Remote section.
1.8: Locked Master: