Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR completes Mohamed-dek's Git Tutorial
Key Points
1. Created and made changes to files on multiple branches
Created topic branches
Mohamed-dek_tutorial
andmake_merge_conf
, made changes tolipsum_insanity.txt
on both branches, and tried to merge.This section shows you how to use interactive staging and features like:
git checkout
git diff
git difftool
git add -i
Caused and resolved a merge conflict.
Trying to merge
make_merge_conf
intoMohamed-dek_tutorial
causes a merge conflict as the same file is edited on each branch. After resolving this merge conflict it shows you how you can see the commit graph.Resolving merge conflicts is a skill that anyone who uses Git should have, because you run into it almost everyday. Some useful features include:
git mergetool
git reset --hard HEAD
git log --graph --oneline --all
git blame
Conclusion
After resolving the merge conflict and checking out the commit graph and pushed my branch to GitHub and created a pull request.
This training is important because it walks you through scenarios that you will find yourself in often when using Git.