- create local repo
- Create 3 files [
a.txt
,b.text
,c.text
]. - Ignore
c.txt
. - Commit the new files.
- Change on
a.txt
- git status
- Commit your changes (make sure to have a clear commit message (best practice).
- Change on
b.txt
- git status
- Commit
- Create two new branches from
master
updateRight
: Change something ona.txt
, add a new filed.txt
updateLeft
: Change something ona.txt
, add a new fileanything.txt
- Create a new branch from
master
, call itmergeBranches
- Merge
updateRight
to the newmergeBranches
branch. - Merge
updateLeft
to the newmergeBranches
branch. - Got conflicts? fix them 😀
- Merge
- Push your local repository to GitHub.
- Create a new merge request from
mergebranch
tomaster
.- Merge it.