Cloning a repo from someone else's Github and pushing it to a repo on my Github

前端 未结 8 1051
小鲜肉
小鲜肉 2021-01-29 17:18

I cloned the repo at https://github.com/railstutorial/sample_app_rails_4 and made a lot of changes to it (I used it as a starting point for my own app), and now I would like to

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-29 17:44

    You can do this by creating a new remote from your local repository (via commandline).

    git remote add  
    

    then you can call:

    git push  
    

    To replace the default "origin" remote that is set up you can run the following:

    git remote rm origin
    git remote add origin 
    

提交回复
热议问题