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 7821465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:39:40+00:00 2026-06-02T07:39:40+00:00

I am new to using Github. I am studying Ruby on Rails with a

  • 0

I am new to using Github.

I am studying Ruby on Rails with a computer and successfully pushed everything to my github repository as well as to Heroku.

Now I am using a computer different from the first one I used.

The question is, how do I clone my github repository, make changes to the code, and push those changes to the original repository in github, and hopefully carry those changes to Heroku as well.

  • 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-06-02T07:39:41+00:00Added an answer on June 2, 2026 at 7:39 am

    When you clone a repository from github (and you are logged in form github)
    You have 3 options / links to “clone” your Repo.

    1. SSH
    2. HTTP
    3. GIT read only

    If you are not logged in, only 2 options appear

    1. HTTP (read only)
    2. GIT read only

    In the file .git/config you can see which one you added, mostly under [remote “origin”]

    url = git@github.com:username/project.git (SSH)
    
    url = https://username@github.com/username/project.git (HTTP)
    
    url = https://github.com/username/project.git (HTTP Read only)
    
    url = git://github.com/username/project.git (Git Read only)
    

    If you choose a read only, the best you can do is remove that remote with:

    git remote rm origin

    After that you can add a new remote:

    git remote add origin https://username@github.com/username/project.git (for http)

    or

    git remote add origin git@github.com:username/project.git (for SSH)

    HTTPS is the most easy to set up, but you will have to enter your password for every push / pull (unless you want to store your password plaintext)

    After setting up the remote, you can push with git push origin branchname

    More information can be found on the git manual page: http://help.github.com/remotes/

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

Sidebar

Related Questions

The ruby gem for LinkedIn that I'm using is here: http://github.com/pengwynn/linkedin When calling LinkedIn::Client.new
Im super new with using GitHub.. I cloned in a repo at html/mycms (repo
I was using a github repository from a previous developer. I am the only
I am using this http://github.com/professionalnerd/simple-private-messages plugin in rails and I am on a user
I add a new project to github using egit by right clicking on the
How do I like a page using the new Facebook iOS SDK? (http://github.com/facebook/facebook-ios-sdk) I'm
I've created a basic demo app in Rails 3.2.2 by using rails new demo.
I'm using twitteroauth from https://github.com/abraham/twitteroauth like this: $Twitter = new TwitterOAuth(...); $Twitter->post('statuses/update', array('status' =>
I'm using the git-new-workdir script present in contrib section of git's codebase: https://github.com/git/git/tree/master/contrib/workdir to
I'm using the Rails 3 Vestal Versions gem: https://github.com/lailsonbm/vestal_versions I'd like to create some

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.