Search code examples
gitgithubstaging

How to 'git push' to a repo that was cloned as read-only onto my team's staging server


I cloned a repo using its GitHub read-only URL onto my team's staging server. I made some changes there to the config files.

I'd like to change the repo clone on the server to be read-write, so that I can 'git push' the config file changes.

How do I do this?

Or is there a better 'best practice' way to deal with this scenario than committing from the staging server?


Solution

  • open up .git/config in your favorite text editor and change the remote url to the read+write url that github shows you.