Sometimes there are situations when you need to add your commits to the PR that was sent to your repository. Follow these commands (taken from here ), but first of all, make sure that the PR author set checkbox “Allow edits by maintainers”

# Update you main repository
git checkout master
git pull origin master

# Fetch PR 19 to local branch 19
git fetch origin pull/19/head:19

# Move to PR branch
git checkout 19

# Make some change
git show HEAD
git commit -m "Add some commit info"

# Add remote fork repository
git remote -v
git remote add username git@github.com:username/reponame.git

# Push my local branch to branch in fork repository
git push username 19:patch-1

# Pull new commits
git checkout master
git pull origin master

# Delete local branch
git branch 19 -d

# Remove origin
git remote remove username