Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save DianaEromosele/fa228f6f6099a8996d3cb891109ab975 to your computer and use it in GitHub Desktop.

Select an option

Save DianaEromosele/fa228f6f6099a8996d3cb891109ab975 to your computer and use it in GitHub Desktop.
Change "origin" of your GIT repository
$ git remote rm origin
$ git remote add origin git@github.com:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@mclements
Copy link
Copy Markdown

After GitHub changed the default branch name from master to main, I used:

$ git remote rm origin
$ git remote add origin git@github.com:aplikacjainfo/proj1.git
$ git config main.remote origin
$ git config main.merge refs/heads/main

@coolprogrammerarpit007
Copy link
Copy Markdown

ThankYou So Much. This is so helpful

@MatrasTomek
Copy link
Copy Markdown

Thank you! Great help.

@ruicruzeiro
Copy link
Copy Markdown

Beautiful! Thank you so much!

@MaloJay
Copy link
Copy Markdown

MaloJay commented Jan 14, 2023

thanks, this helped alot..

@rcapdepaula
Copy link
Copy Markdown

thanks!

Copy link
Copy Markdown

ghost commented May 16, 2023

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment