Today, when using git to add a remote GitHub warehouse, you will be prompted with an error: fatal: remote origin already exists
Finally, the solutions are as follows:
1. Delete the remote git warehouse first
$ git remote rm origin
2. Add remote git warehouse
$ git remote add origin [email protected] :FBing/java-code-generator
If an error is reported when git remote RM origin is executed, we can manually modify the contents of the gitconfig file
$ vi .git/config
Similar Posts:
- Git submits the code to the remote warehouse with an error: fatal: remote origin already exists
- Git Error: fatal: remote origin already exists [How to Solve]
- GitHub common operations and common errors! Error prompt: fatal: remote origin already exists
- git:fatal: No configured push destination.
- How to Solve Code cloud error: fatal: remote origin already exists
- GitHub# fatal: ‘origin’ does not appear to be a git repository
- fatal:’origin’ does not appear to be a git repository fatal:Could not read from remote re…
- How to Solve error: failed to push some refs to ‘xxxx’
- [Solved] error: failed to push some refs to ‘xxxx’