I have forked a repo on github and the repo I have forked from has since added a new branch. I would like to get that branch into my local fork and work on it. Afterwards I would like to commit to that branch (which is in my local fork) and then submit a pull request to the original parent repo.
What ends up happening when I try to do this is as follows
- Fork from parent repo
- Parent repo then makes a new branch
- On my local machine I do: git remote add parent https://github.com/PARENT/parentProj.git
- git pull parent [new branch name]
- Now I try: git checkout [new branch name] and I get "Branch [new branch name] set up to track remote branch [new branch name] from parent. Switched to a new branch '[new branch name]'
- I think I am good but I am not. Now when I make my changes and git push I get "remote: Permission to PARENT/parentProj.git denied to [me]."
I believe it is trying to push to the parent project new branch and not my fork of it.
How do I get it to let me push to the new branch on my fork so that I can then issue a pull request?