(1) I fork a person’s repo in Github, let’s call the person’s repo as remoteRepo, my github’s repo as myRepo.
(2) I clone it to my local pc.
I use this command,
$git clone [remoteRepo] -b [branch_name] /my/local/folder
Now,the remoteRepo has changed. I am going to update my local files in order to keep same source code with his.
I did like this,
$ git remote add upstream [remoteRepo]
$ git fetch upstream
$ git fetch upstream
$ git merge upstream/[branch_name]
But it doesn’t work. Nothing update, what’s the reason?
I follow the document from github help
You haven’t made any local changes yet. You’re already up to date with the remote repo, so there’s nothing else to do.