I am having problems pulling a fork from github into a folder, where the parent repo resides.
I already have a working local folder where I can pull parent repo changes into.
Here are my steps:
- Create local folder for forked repo
- Fork a repo on github
- Pull forked repo into local folder
- Make my changes, commit and push them
- Github has registered the commits
No problems so far. I have 2 sibling folders, (ORG) one with the original repo and (FORK) one with my fork that I can work on.
Now I need to pull my fork onto a second machine (for testing). Here are the steps on the secondary machine:
cd folderWith ORG repogit remote add UniqueName git://github.com/myUserName/forkedRepoName.gitgit branch -adoes not show UniqueName. I think this is where the problem liesgit remote -vshows both a fetch and push entry for UniqueName. I only need fetch/pullgit branch fork. Create a new branch so I can switch between ORG and FORK reposgit checkout forkgit pull UniqueName/master. “fatal error: ‘UniqueName/master’ does not appear to be a git repository”
What am I doing wrong ?
I do not wish to have sibling folder on the secondary machine too, only another branch.
UPDATE:
git branch -a will first show the branches of UniqueName after you do a git fetch/pull.
For your last command, try
git pull UniqueName master.