git - Issues while creating repository? -
hi new bitbucket.
in beginning, while setting account asked enter email ids...do @ time have enter email id or email ids of people sharing code with.
while setting code repository using following steps:
mkdir abcproject cd abcproject git init touch readme git add readme git commit -m 'first commit' git remote add origin https://bitbucket.com/userabc/rdf-project.git git push -u origin master
but in these steps not getting have put code, sharing. have myself put code within abcproject folder?
and statement
git push -u origin master
gives me error:fatal: https://bitbucket.com/userabc/abcproject/abcproject.git/info/refs not found: did run git update-server-info on server?"
for pushing repo..i using following commands,
git remote add origin git@github.com:userabc/abcproject.git $ git push origin master
it's still giving me same error...(the error same above). meaning of above statement.
i new bitbucket. can king enough me out??? (i have code stored on pc , want share code friends.)
first of all, repository put in code. repository contains files , complete history. create when typing git init
. yeah, abcproject
folder.
to add files repository (after moving files it), need add them history, similar did readme
file. should refer git tutorials on how it, , can do.
next, alex pointed out, talking bitbucket use github url. correct url should https://<user>@bitbucket.org/<user>/abcproject.git
. note when using git@bitbucket.org:…
or git@github.com:…
remote, using ssh need setup ssh keys first (the site’s sections explain pretty well).
finally, seems repository trying push not exist. before pushing, create repository on site. after doing should mini tutorial on how add (correct) remote existing repository , push correctly. follow that, , should fine.
in general, i’d suggest take @ bitbucket 101 tutorial, “create account , git repo” part. general git help, should read git book (at least first 2 chapters).
Comments
Post a Comment