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:
create repo on github. without readme, empty.
in existing repo:
git remote add remotename url
. name remotegithub
, example, or else want. copy url github page of repo created.push existing repo:
git push remotename branchname
. example if named remotegithub
, want push master it,git push github master
let me know if need else.
Comments
Post a Comment