I recently forked a repository. The repository has been updated and I would like to have the updated version. When I git pull, does it pull from my repository on github? Or will it pull from the forked repository?
From my understand when I fork I have access to 3 versions of the repository.
So if I git pull from my local machine, will that pull from my personal repository where the project is forked, or will it pull from the project repository where everyone is working from?
**I cloned the repository to my local machine by git clone [https link] (my own forked version). **I'm in the process of trying to find the rest of the information Wooble requested, thanks for the suggestions! I will try to get that information asap.
Thanks!
You will have remotes to both your forked repository and the original repository you forked from. Run git remote -v to see a list of remotes available.
You can choose to pull from the listed remotes:
git pull <remote_name> <branch_name>
Doing a git pull will pull from your default remote, which in your case is your repository not the original one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With