DEV Community

Discussion on: Setting up a Git server in three simple steps

Collapse
 
doshirae profile image
Doshirae

I have a question
For now, I have my remote set to be a github repo, so I push to it, then ssh into my server where my project (a discord bot) is, and then pull

Does setting my server as the remote prevents me from pulling each time ?

Collapse
 
andrew profile image
Andrew O'Rourke

I'm not entirely sure what you mean, but it's worth mentioning that you can have more than one remote for a git repo. You can pull and push from whichever remotes you want.

Collapse
 
doshirae profile image
Doshirae

Ohw
How can you do that ?

Thread Thread
 
bhaveabhay profile image
Abhay Bhave

Well, "origin", though default, is just a name. Name of a "Remote repo" wherever that is ;)

Git is great because it's f simple!

You can have multiple remotes, and the situation will be like github forks, only may differ from it in permissions.

I think auth and permissions are not git's direct responsibility, though I many be wrong about it.