Reputation: 103
So, my friend made a repository, made me a collaborator, I branched out, forked and then cloned into my IDE.
Everything went fine with that, did some small changes and then wanted to test commit and push.
Commits and push went to my friends repo, everything is fine there, but they are not showing on my fork.
I'm doing it this way (hope it's not the wrong way) to practice these kind of things and I would like to have that project on my profile after I'm done.
Thanks.
Upvotes: 1
Views: 3334
Reputation: 408
Quoting from Github's docs:
"A fork is a copy of a repository.."
A fork essentially creates a separate repo. If you were committing and pushing to your friend's repo, your forked copy has no idea about it unless you push them to your repo also, or merge your friend's repo into your fork.
Ideally, you should never push to the original repo (your friend's repo) at all. Commit and push to your own repo by changing the remote, and when you want your commits to reflect in the original, you should raise a Pull request (assuming you're using GitHub).
Upvotes: 4
Reputation:
You cloned it into your IDE, so you are editing his repo directly. No longer forking.
Upvotes: 0