git remote remove origin fatal no such remote 'origin'
The above will only work if you've either cloned the repository or manually added a remote called origin.
If "git remote -v" doesn't show you any remotes you can simply add a remote using:
git remote add origin https://username@stash/scm/PROJECT/repo.git
The name of the remote doesn't have to be "origin" and can be any name that makes it easier for you to identify that particular remote (e.g. "stash").
HTH,
Stefan
4
6
git remote set-url origin https://github.com/your/repository
Thank you!
6
0
Are there any code examples left?
New code examples in category Shell/Bash
-
Shell/Bash 2022-03-28 00:30:33 wise highlight ubuntu
-
Shell/Bash 2022-03-28 00:25:19 how to send a pull request in git
-
Shell/Bash 2022-03-27 23:55:06 how to open terminal in sublime text ubuntu
-
Shell/Bash 2022-03-27 23:25:19 how to switch branch
-
Shell/Bash 2022-03-27 23:20:25 python
-
Shell/Bash 2022-03-27 23:20:04 set user as admin gitlab
-
Shell/Bash 2022-03-27 23:10:09 apache2 mod_jk proxy to tomcat connector
-
Shell/Bash 2022-03-27 22:35:12 chown
-
Shell/Bash 2022-03-27 22:15:08 awk last match