Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 549087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:08:52+00:00 2026-05-13T11:08:52+00:00

New to git, so this is hopefully a simple question with a simple answer.

  • 0

New to git, so this is hopefully a simple question with a simple answer.

I forked a repository on GitHub. I then cloned it on my local machine by using the public repo URL: git@github.com:samuelclay/django-mingus.git, as opposed to the private repo URL: git://github.com/samuelclay/django-mingus.git.

I made some changes to the code, committed those changes, and in order to push my changes up to my forked repo, I issued: git remote add upstream git://github.com/samuelclay/django-mingus.git, and then git push upstream, but while that doesn’t give me an error (it says Everything up-to-date), it is certainly not pushing my changes up to GitHub.

Is there a way to change to the private repo URL? Is that even necessary?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:08:52+00:00Added an answer on May 13, 2026 at 11:08 am

    I was able to easily do this by editing the .git/config file.

    $git clone git://github.com/user/test.git # Clone from read only
    # Make changes
    $ git push
    fatal: remote error: 
      You can't push to git://github.com/user/test.git
      Use git@github.com:user/test.git
    

    So I edited .git/config for that project and changed the origin’s url:

    [remote "origin"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        # Remove this line:
        #url = git://github.com/user/test.git
        # Add this line:
        url = git@github.com:user/test.git
    [branch "master"]
        remote = origin
        merge = refs/heads/master
    
    $ git push
    Counting objects: 5, done.
    Delta compression using up to 2 threads.
    Compressing objects: 100% (3/3), done.
    Writing objects: 100% (3/3), 298 bytes, done.
    Total 3 (delta 2), reused 0 (delta 0)
    To git@github.com:user/test.git
       58986b8..c8bd8c2  master -> master
    

    Success!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried using the answer involving git-filterbranch from this question Combining multiple git repositories
I'm pretty new to this Git thing. I tried to commit my work, using
Ok, hopefully this should be easy for you. I'm new to git, BitBucket and
I had the same question as asked here: New git repository in root directory
This is probably a dumb question, but I'm brand new to git and am
In Git I can do this: 1. Start working on new feature: $ git
I am new to git, and have a subversion repository that I want to
I'm very new to Git and I've been following this online tutorial for converting
Normally, when I start up a new application, I'd create a new git repository
I am new to Git and this is the first time I have experienced

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.