Mudanças entre as edições de "Adicionando repositório GIT remoto"

De Basef
Ir para: navegação, pesquisa
 
(10 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 3: Linha 3:
 
<source lang="bash">
 
<source lang="bash">
 
git remote add origin git@bitbucket.org:repositorio/projeto.git
 
git remote add origin git@bitbucket.org:repositorio/projeto.git
</source>Caso já exista um repositório remoto, para mudar para um novo:
+
</source>
 +
 
 +
Caso já exista um repositório remoto, para mudar para um novo:
  
 
<source lang="bash">
 
<source lang="bash">
 
git remote set-url origin git@bitbucket.org:repositorio/projeto.git
 
git remote set-url origin git@bitbucket.org:repositorio/projeto.git
 
</source>
 
</source>
 +
 
[[Categoria:GIT]]
 
[[Categoria:GIT]]

Edição atual tal como às 00h17min de 24 de abril de 2015

Partindo de um diretório que ainda não esteja apontando para um repositório GIT:

git remote add origin git@bitbucket.org:repositorio/projeto.git

Caso já exista um repositório remoto, para mudar para um novo:

git remote set-url origin git@bitbucket.org:repositorio/projeto.git