GIT Questions?
-
Getting started with GIT. Am I doing this right?
I'd like to have a HISE source code directory on my local computer that:
- Let's me stay in synch with official develop, where I manually approve which commits I want to integrate.
- Make changes for my own use, which I would not submit to the official ("upstream"?) repository.
- I'm the only one using my fork, so I don't need any collaborative mechanisms.
- Private repository.
So far, I:
- Forked develop on GitHub.
- Cloned my fork to a local directory.
Where does my fork exist?
-
Is there a master directory on GitHub's servers for my fork, and my local directory was cloned from there? If so, do I need to push my local commits to this remote repro? And is it the remote repro that I synch with develop, and then I pull/fetch from the remote?
-
Is it my local directory (with the data stored in the invisible GIT files/directories)—the clone was directly of develop? In this scenario, when develop is updated, I am pulling/fetching directory from it (as an upstream repro)?
-
Nowhere. A fork is just a set of permissions about and comparisons to develop for third-parties. All that exists is develop and whatever is in the local directory on my computer.
Thank you,.
-
@clevername27 said in GIT Questions?:
Where does my fork exist?
It exists on your computer and on github.
I recommend you create a new branch for your own work, based off Christoph's develop branch. Then when Christoph makes changes you can switch to the develop branch, pull the changes, then switch back to your branch and merge those changes - that's what I do anyway.
Use
git remote -v
to check which remote repos you're pulling from. I think by default when you fork a repo on github and clone it to your system the only remote will be your fork on github. In which case you'll need to add Christoph's upstream if you want to be able to get the latest updates.Looks like I made a video about it a while back - https://youtu.be/vXr9J9H7NhE?t=799
-
@d-healey Thank you. So a Fork isn't a living, breathing thing - it's just a snapshot of a repository. If I want the fork to inherit changes from the source, I need to ink them. As I understand, I can simply click the "Synch Fork" button to manually do that. (Or, as you suggest, I could connect it so this happens automatically.).
-