Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 532 Bytes

WorkWithFork.md

File metadata and controls

28 lines (23 loc) · 532 Bytes

Work with fork

Delete every local changes and reset to upstream/master

git checkout master
git pull upstream master
git reset --hard upstream/master
git push origin master --force

Create pull_request for pull request

git checkout master
git checkout -b pull_request

Squash merge for pull request

git checkout pull_request
git pull upstream master
git reset --hard upstream/master
git merge --squash --no-commit WORKING_BRANCH
git status
git commit -am "PR TITLE"
git pull origin pull_request