Pulling from http to escape authentication(so I don't need to type password if I'm not using ssh.keygen). Pushing through ssh with authentication.
views:
24answers:
1
+1
A:
From the git-config
man page:
remote.<name>.url
The URL of a remote repository. See git-fetch(1) or git-push(1).
remote.<name>.pushurl
The push URL of a remote repository. See git-push(1).
Try setting the former to an http:
url and the latter to a git+ssh:
(or just git:
) url?
Amber
2010-08-24 03:05:21
Thx!!just edit .git/config file, change it like this: [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = http://git.yoursite.com/your_project.git pushurl = [email protected]:/home/git/repositories/your_project.git
Tsung.W
2010-08-24 07:47:50