Overview
Teaching: 0 min
Exercises: 0 minObjectives
- reviewing key points of Git - workshop 3
Resolving conflicts:
<<<<<<<, >>>>>>>, and =======) in unmerged filesgit add) and commit (git commit) that changeuse a visual tool (git mergetool)
git merge --abort)git merge -s recursive -Xours)git merge -s recursive -Xtheirs)Git for travelling in time:
typical workflow:
git grep, git show, ‘git annotate` to identify a commit to inspectgit checkout -b branchname somehash to branch off from that commitif you are not sure which commit to inspect:
git bisectAdvanced - more on working with branches:
git merge vs git rebase:
git merge to keep a set of commits clearly grouped together in historygit rebase when you want to keep linear commit history (this changes history!)git rebase -i may be handy when you need to squash commitsThink of good branch hygiene, develop a good branching model for your project.