git - Link to existing github repository -


i have created repository on github , commit changes repository using git. have project file structure (created using heroku) commited. steps required in order link existing github repo git ?

in past i've used "github windows" ui create github repository, creates file structure on machine , update file structure changes recognised.

but new setup little different in project exists , want link new github repoistory.

you need add new remote, pointing github, , push it. steps:

  1. create repo on github. without readme, empty.

  2. in existing repo: git remote add remotename url. name remote github, example, or else want. copy url github page of repo created.

  3. push existing repo: git push remotename branchname. example if named remote github , want push master it, git push github master

let me know if need else.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

html - Repeat image to extend header to fill screen -

javascript - Backbone.js getting target attribute -