References to repositories in git
-
♪
git
There's a team to keep a repository address under a reduced name:git remote add origin https://thisisanexample.git
There's also a team to change the repository address:
git remote set-url origin https://thisistheexample.git
But what team should we put in order to record a repository address in a name, the address on that name changed if it was already in existence and created if it wasn't?
-
But what team should we put in order to record a repository address in a name, the address on that name changed if it was already in existence and created if it wasn't there?
For example:
$ git remote add имя url-хранилища || git remote set-url имя url-хранилища
used http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03_08 :
$ команда1 || команда2
команда2
only ifкоманда1
ends with a non-neutral return code (i.e., error).