On Thu, Jul 12, 2012 at 01:48:44PM +0530, J. Bakshi wrote: > Is there any option to add user-name and password with git push ? The username can go in the URL. For example: git push user@host:repo.git for ssh, or: git push https://user@host/repo.git for http. For ssh, you can't specify a password automatically, but you should look into using key authentication (which can then be cached by ssh-agent). For http, you can put the password in the URL, but there are some security implications (like the fact that your password will be cleartext on disk, and visible in the process list to other users on the system). What protocol are you using to push? > Or any repo wise configuration file where I can save the info, so that > it doesn't ask the credential before every push ? Older versions of git can read from .netrc, but I would not recommend that, as it involves storing the password in plaintext on disk. Newer versions of git (v1.7.9 and up) support "credential helpers" which will read from a password wallet or other secure storage provided by the OS. There is a helper for OS X Keychain in contrib/, and somebody has been working on one for Windows. What platform are you using? -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html