This repository contains my solutions to every single problem available on Learn Git Branching. Each solution is designed to help you understand and master various Git concepts.
Feel free to explore the solutions, use them as a reference, or contribute by submitting a pull request or creating an issue if you find any problems or have suggestions for improvements.
git commit
git commit
git branch bugFix
git checkout bugFix
git checkout -b bugFix
git checkout -b bugFix
git commit
git checkout main
git commit
git merge bugFix
git checkout -b bugFix
git commit
git checkout main
git commit
git checkout bugFix
git rebase main
git checkout C4
git checkout bugFix^
git checkout C4^
git checkout HEAD~1
git branch -f main C6
git branch -f bugFix HEAD~1
git reset local^
git checkout pushed
git revert pushed
git cherry-pick C3 C4 C7
git rebase -i HEAD~4
git rebase -i overHere
git checkout main
git cherry-pick C4
git rebase -i main
git checkout main
git merge bugFix
git rebase -i main
git branch -f main C4'
git rebase -i HEAD~2
git commit --amend
git rebase -i HEAD~2
git branch -f main HEAD
git rebase -i main;
git commit --amend;
git rebase -i main;
git rebase caption main
git checkout main
git cherry-pick C2
git commit --amend
git cherry-pick C3
git tag v0 C1
git tag v1 C2
git checkout v1
git commit
git rebase main bugFix
git rebase bugFix side
git rebase side another
git rebase another main
git branch bugWork C2
git branch bugWork HEAD~^2~
git branch bugWork HEAD^^2^
git rebase main one
git rebase -i C1
git rebase main two
git rebase -i C1
git branch -f three C2
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/main
git commit
git fetch
git pull
git clone
git fakeTeamwork 2
git commit
git pull
git commit
git commit
git push
git clone
git fakeTeamwork
git commit
git pull --rebase
git push
git reset --hard o/main
git checkout -b feature C2
git push
git branch feature main
git reset --hard HEAD^
git push origin feature
git checkout feature
git fetch
git rebase o/main side1
git rebase side1 side2
git rebase side2 side3
git rebase side3 main
git push
git checkout main
git pull
git merge side1
git merge side2
git merge side3
git push
git checkout -b side o/main
git commit
git pull --rebase
git push
git push origin main
git push origin foo
git push origin foo:main
git push origin main^:foo
git fetch origin foo:main
git fetch origin main^:foo
git checkout foo
git merge main
git push origin :foo
git fetch origin :bar
git pull origin bar:foo
git pull origin main:side