New PR workflow of Github


git PR workflow

branch work

# create new branch and switch to that new branch.
$ git checkout -b feature-branch 
# push new branch to remote repository, and if there is no remote branch, it will be created automatically.
$ git push origin feature-branch:feature-branch

rebase

# in case of forcing push override other's work
git pull origin [current working branch]
git checkout master 
git pull origin master 
git checkout [current working branch]
git rebase master 
# if you have already pushed
git push --force-with-lease origin [current working branch]