github - Using GIT Bash, ERROR: Repository not found - fatal: Could not read from remote -
my friend's project in git repository, have downloaded 'git-1.9.4-preview20140929.exe' , installed git bash pull project end, did using
$ git clone <with ssh clone url>
i got project in local system, , have done few changes want push changes repository, did
$ git init reinitialized existing git repository in c:/users....
and
$ git add . $ pom.xml ./pom.xml: line 1: project: no such file or directory ./pom.xml: line 2: syntax error near unexpected token `newline' ./pom.xml: line 2: ` xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http ://maven.apache.org/maven-v4_0_0.xsd">'
and
$ git commit -m 'first commit' on branch master branch ahead of 'origin/master' 2 commits. (use "git push" publish local commits) nothing commit, working directory clean
and
$ git push -u origin master:master enter passphrase key '/h/.ssh/id_rsa': error: repository not found. fatal: not read remote repository. please make sure have correct access rights , repository exists.
or
$ git push origin master enter passphrase key '/h/.ssh/id_rsa': error: repository not found. fatal: not read remote repository. please make sure have correct access rights , repository exists.
most of them having same problem (previous stack overflow question/answers) different reasons, , have tried answers couldn't able fix error, please give me directions on this, thanks!
after the chat, right way configure link github is:
cd c:\users\ramas\dmsproject\dms git remote set-url origin git@github.com:vamsiannem/dms.git
then git push
can work.
Comments
Post a Comment