git clone https://github.com/ricardo-hdz/git-intro.git
cd git-intro
git pull
git checkout feature_ab
- Make changes to function ab()
git status
- push changes to feature_ab branch
git push origin <branch>
git rebase master
- resolve conflicts
- commit merge (after resolving conflicts, do
escape :
)
- Make changes to function ab()
git checkout master
git stash
git checkout master
git checkout feature_ab
git stash apply
- Create a fork of repo
- Make changes
- Create PR to main repo
git fetch upstream
git merge upstream/<branch> <branch>
git checkout -b <branch_name>