Coming from cvs and svn I tend to clone git repos with https, which work but ask for the username password every time you connect.
To avoid the prompt you should use the ssh url an be done with it. If you already use a repo and want to switch to ssh follow the following steps
1. git remote show origin
Password for 'https://username@bitbucket.org':
* remote origin
Fetch URL: https://username@bitbucket.org/username/reponame.git
Push URL: https://username@bitbucket.org/username/reponame.git
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
2. git remote set-url origin git@bitbucket.org:username/reponame.git
3. git remote show origin
* remote origin
Fetch URL: git@bitbucket.org:username/reponame.git
Push URL: git@bitbucket.org:username/reponame.git
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
You can easily get the URL for your repo from your Github, bitbucket or wherever you are hosting your repo. If you get a response i.e. like this
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
then you might forgot to put your ssh key on the github repo server.
Technical tweaks, helpers, contradictions and a lot of blood sweet and tears are inside this blog.
Search This Blog
Showing posts with label Password. Show all posts
Showing posts with label Password. Show all posts
Tuesday, August 21, 2012
Friday, January 29, 2010
Password expired Windows 7
The default setting in Windows 7 for your password policies is an expiry time about 42 days. If you want to get rid of this just do
- Start->lusrmgr.msc
- Select your user and check "Password never expires"
Subscribe to:
Posts (Atom)