github - Git - Is there any way to create a brand new remote repo from a local repo? -


i want create brand new, not existing, remote repo in git local repo.

i have looked @ many of answers here, involve similar following:

mkdir test2 cd test2 git init cat > somefile git add * git commit -m 'd' git remote add origin git@git.myserver.com:myorg/myrepo # tried git remote add origin git@git.myserver.com:myorg/myrepo.git git push origin master 

however, response always:

error: repository not found. fatal: not read remote repository.  please make sure have correct access rights , repository exists. 

i owner/admin of org, , should have permissions on it. repo myrepo not exist, trying create remote machine. there anyway or server side option or similar? not have access git server make modifications there, , prefer not have make them using http interface.

the short answer no. think of this: git has no way of knowing on other side of url specify remote. not know if have permissions there or if there git installation there @ all. way can make remote repository go remote location , create one, example logging github, or logging git.myserver.com , creating repository there. hope helps.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -