Back

Explore Courses Blog Tutorials Interview Questions
+8 votes
2 views
in DevOps and Agile by (19.4k points)
edited by

I am trying to set git up with http://danielmiessler.com/study/git/#website to manage my site.

I have gotten to the last step in the instructions: git push website +master:refs/heads/master

I am working using the git ming32 command line in win7

$ git push website +master:refs/heads/master

Bill@***.com's password:

Connection closed by 198.91.80.3

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

One problem here may be that the program is looking for Bill@***.com. when I connect via ssh to my site I have a different username( lets say 'abc'). so maybe this should be abc@***.com. If so I don't know how to change this or if I can push under an alias

1 Answer

+8 votes
by (29.3k points)
edited by

For this question, you could specify the username that SSH should send to the remote system as part of your remote's URL. 

Put the username, followed by an @, before the remote hostname.

git remote set-url website abc@***.com:path/to/repo

this would help you to go inside remote repo and allow you to read from the remote repository.

For complete understanding of git here is the tutorial which helps you:

Browse Categories

...