Is there a way to force the creation of a remote repository?

Viewed 562

I'm jus trying to clean up my code and eliminate errors. If I run:

git remote add godaddy $user1@foo.com:~/root.git

I get

fatal: remote godaddy already exists.

I know it exists, but I just want it to ignore it and create it again.

For example you can suppress errors for mkdir with the -p

I checked here but could not find anything:

https://git-scm.com/docs/git-remote

This is not a duplicate as I'm looking for a command line option to supress the "error".

5 Answers
Related