tags:

views:

24

answers:

1

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.

+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
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