I find it little confusing to know the difference between git branch --set-upstream-to
vs git remote add origin
or even git remote add upstream
Basically I have a bare repository created with git init --bare
which is shared on network so that other developers could also push to it so that we have our projects versioned locally but not sure which command should I run amongst above three (or if there is some other) to track that central repo eg we push our changes from all projets to that central bare repo and pull/fetch from it too.
Can anyone please enlighten on this?