[RAILS] How to deal with fatal: remote origin already exists.

background

I got this error when trying to push a file in an existing repository to another repository.

Solutions

git remote rm origin

You can now git remote add, push to your new repository.

Recommended Posts

How to deal with fatal: remote origin already exists.
[Android] How to deal with dark themes
How to deal with Precompiling assets failed.
Diet program with preprocessor (how to deal with i-appli size)
How to deal with No template for interactive request
[Docker environment] How to deal with ActiveSupport :: MessageEncryptor :: InvalidMessage
[Rails] How to deal with URL changes after render
Common problems with WSL and how to deal with them
[Docker + Rails] How to deal with Rails server startup failure
`bind': Address already in use --bind (2) for 127.0.0.1:3000 (Errno :: EADDRINUSE) How to deal with the error
How to number (number) with html.erb
How to update with activerecord-import
How to deal with the error ERROR: While executing gem ... (Gem :: FilePermissionError)
How to deal with Bundler :: Dsl :: DSLError by rewriting gemfile
How to deal with different versions of rbenv and Ruby
How to scroll horizontally with ScrollView
[Rails / RSpec] How to deal with element has zero size error
How to deal with 405 Method Not Allowed error in Tomcat + JSP
How to enclose any character with "~"
Android: How to deal with "Could not determine java version from '10 .0.1'"
How to use mssql-tools with alpine
Project facet Java version 13 is not supported. How to deal with
How to get along with Rails
[Rails] PG :: DuplicateTable: ERROR: relation "users" How to resolve already exists
How to start Camunda with Docker
Java8 / 9 Beginners: Stream API addiction points and how to deal with them
How to crop an image with libGDX
How to share files with Docker Toolbox
[Java] How to compare with equals method
How to use BootStrap with Play Framework
[Rails] How to use rails console with docker
How to switch thumbnail images with JavaScript
[Note] How to get started with Rspec
How to remote debug Java 9 or later
How to do API-based control with cancancan
How to achieve file download with Feign
How to update related models with accepts_nested_attributes_for
How to set JAVA_HOME with Maven appassembler-maven-plugin
How to implement TextInputLayout with validation function
How to handle sign-in errors with devise
How to delete data with foreign key
How to test private scope with JUnit
How to monitor nginx with docker-compose with datadog
How to achieve file upload with Feign
How to run Blazor (C #) with Docker
How to build Rails 6 environment with Docker
How to deal with FATAL: role "admin0" does not exist and PG :: ConnectionBad: FATAL: role "admin0" does not exist when executing rails db: create
[Laravel] How to deal with out of memory error when composer require [Docker]
Challenge to deal with garbled characters with Java AudioSystem.getMixerInfo ()
How to download Oracle JDK 8 rpm with curl
It's a pain to deal with old dates
How to mock each case with Mockito 1x
How to mock each case with PowerMock + Mockito1x
How to use MyBatis2 (iBatis) with Spring Boot 1.4 (Spring 4)
How to save to multiple tables with one input
How to test interrupts during Thread.sleep with JUnit
How to use built-in h2db with spring boot
How to search multiple columns with gem ransack
How to use Java framework with AWS Lambda! ??
[Swift] How to link the app with Firebase
How to create multiple pull-down menus with ActiveHash