Reputation: 5955
Another user submitted a pull request on my repository (e.g. myself/foorbar
), by:
otheruser/foobar
).otheruser/foobar:patch
).Now I wish to amend this pull request. Following Github's reader, I:
Cloned the fork:
cd forks
git clone https://github.com/otheruser/foobar.git
Checked out the branch used to open the pull request:
cd foobar
git checkout patch
Committed to the branch.
...
git add -A
git commit -m "Amendments"
Now I wish to push the changes:
git push origin patch
But Github prompts me for my username and password and then responds:
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/otheruser/foobar.git/'
So my question: How do I use my right as a maintainer/owner to edit the pull request?
Upvotes: 1
Views: 230
Reputation: 3230
You steps sound correct.
Have you checked if the permission problem is really related to pushing to the other's repo? Your error message does sound like it may be related to wrong username / password.
http://
repo URL and username / password? Have you tried switching to SSH key procedure with git@
... URL (You can switch when you use the clone or download button on GitHub). This has the additional advantage that it gives you a smoother workflow using your ssh key: You do not have to enter username / password all the time, you can protect SSH key with passphrase and enter passphrase once per session.Upvotes: 1