bitbucket http://alexmoreno.net/ en Using git in bitbucket without password http://alexmoreno.net/using-git-bitbucket-without-password/10-02-2013 <article role="article" about="http://alexmoreno.net/using-git-bitbucket-without-password/10-02-2013" class="node node--type-blog node--promoted node--view-mode-teaser"><header><div class="node__meta"> <span> By <span class="node__author"><span><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 10 February, 2013 </span> </div> <div class="node__top-wrapper"> <h2 class="node__title"> <a href="http://alexmoreno.net/using-git-bitbucket-without-password/10-02-2013" rel="bookmark"> <span>Using git in bitbucket without password</span> </a> </h2> </div> </header><div class="node__content text-content"> <div class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Look mom, without hands...</p><p>First, change this in your .git/config:</p>old url:<pre> url = https://USER@bitbucket.org/hispamedios/PROJECT.git</pre> new one: <pre>url = ssh://USER.bitbucket.org/hispamedios/PROJECT.git</pre><p> </p><p>Edit your .ssh/config, in your local directory, and add this:</p> <pre> cat .ssh/config Host YOURUSER.bitbucket.org HostName bitbucket.org User git IdentityFile ~/.ssh/bitbucket</pre> <p>The last line is important, so you are indicating your identity file. Now create this file:</p></div> <div class="field field--name-taxonomy-vocabulary-1 field--type-entity-reference field--label-hidden field--tag-ref"> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/ssh" hreflang="es">ssh</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/git" hreflang="es">git</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/bitbucket" hreflang="es">bitbucket</a></li> </ul></div> </div> </article> Sun, 10 Feb 2013 11:53:28 +0000 alexmoreno 96 at http://alexmoreno.net private git repositories in bitbucket http://alexmoreno.net/private-git-repositories-bitbucket/06-11-2012 <article role="article" about="http://alexmoreno.net/private-git-repositories-bitbucket/06-11-2012" class="node node--type-blog node--promoted node--view-mode-teaser"><header><div class="node__meta"> <span> By <span class="node__author"><span><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 6 November, 2012 </span> </div> <div class="node__top-wrapper"> <h2 class="node__title"> <a href="http://alexmoreno.net/private-git-repositories-bitbucket/06-11-2012" rel="bookmark"> <span>private git repositories in bitbucket</span> </a> </h2> </div> </header><div class="node__content text-content"> <div class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Let me got directly to the point. The bitbucket documentation is wrong, on the begining you are just suposed to do a git remote add origin</p><p>in the directory which you want to commit. But this will not work:</p><p>fatal: Not a git repository (or any of the parent directories): .git</p><p>Solution? Init the repository:</p><p>git init</p><p>git remote add origin https://ACCOUNT@bitbucket.org/ACCOUNT/REPOSITORY.git</p><p>git push -u origin master</p><p>will also don´t work :-(. The problem is that the message error is all but obvious.</p><p> </p></div> <div class="field field--name-taxonomy-vocabulary-1 field--type-entity-reference field--label-hidden field--tag-ref"> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/git" hreflang="es">git</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/bitbucket" hreflang="es">bitbucket</a></li> </ul></div> </div> </article> Tue, 06 Nov 2012 21:33:01 +0000 alexmoreno 63 at http://alexmoreno.net