Last active
January 6, 2021 18:04
-
-
Save shredder47/d153e7fb4cb5506b7e1c1a3570ee8f29 to your computer and use it in GitHub Desktop.
Git Origin Remove and Add New
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
git add . | |
git commit -m "question1 added" | |
git branch -M main | |
git remote add origin remote_url | |
git push -u origin main | |
//For removing exising origin and adding new | |
git remote show origin | |
git remote rm origin | |
git add . | |
git commit -m "INIT" | |
git remote add origin remote_url | |
git remote show origin | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment