Mudanças entre as edições de "Adicionando repositório GIT remoto"
De Basef
| 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> | + | </source>Caso já exista um repositório remoto, para mudar para um novo: |
| − | [[Categoria:GIT]] | + | <nowiki><source lang="bash"></nowiki> |
| + | |||
| + | git remote set-url origin git@bitbucket.org:repositorio/projeto.git | ||
| + | |||
| + | <nowiki></source></nowiki>[[Categoria:GIT]] | ||
Edição das 00h24min 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
<source lang="bash">
git remote set-url origin git@bitbucket.org:repositorio/projeto.git
</source>