0

I tried to clone a repository from git bash using similar command to this command.

      git clone ssh://server.net/team/git/gui.git

then it asked the username and password. i entered wrong user name with password. then later i tried to clone that repository using same command. but it is not asking for username. it just ask password for [email protected](here username is the one i entered for username first time). so i can't clone that repo. how can i remove that user([email protected])?
thanks.

2
  • Do you have .gitconfig in $HOME directory? Commented Nov 15, 2013 at 4:17
  • yep. there is .git folder and .gitconfig file. thanks you. i got it worked.thanks again. Commented Nov 15, 2013 at 4:40

1 Answer 1

2

You can provide a user in the clone URL:

ssh://[user@]host.xz[:port]/path/to/repo.git/

Try cloning like so:

git clone ssh://[email protected]/team/git/gui.git/

Reference:

Sign up to request clarification or add additional context in comments.

1 Comment

Delighted to hear it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.