Problem
I received a pull request and I want to approve it via the command line (i.e., without logging into Github with my browser and using the GUI). This PR makes changes to a branch.
This is what I tried:
# First I go to the correct branch:
git checkout branch-to-be-modified
# Then I pull the changes made by the person who's contributing with the PR:
git pull https://github.com/my-contributor/code.git his-branch
# I then run `git status`, but it shows me nothing
git status
# Outputs:
# > On branch branch-to-be-modified
# > nothing to commit, working tree clean
Question
How do I accept the Github pull request through the command line?
What else do I need to do, should I just git push origin branch-to-be-modified
?
This should be easy, but I can't find this information. Thank you so much for any leads