Is it proper convention to just name a GitHub remote `github`?

50 views Asked by At

I ask because I use Heroku and the remote by default is just named heroku.

Makes sense to me, I've just never seen anyone else do this.

1

There are 1 answers

0
user229044 On

Is it proper syntax to...

This isn't a question of "syntax". You can call your remotes whatever you want, but convention is to have a remote called "origin" which is the default setup by Git (not Github) when you clone a repository.

You're welcome to rename "origin" to whatever you'd like, but the reason you've not seen other people doing this is that "origin" is the common convention and there is no compelling reason to rename it.