DEV Community

ダニエリ for WoMakersCode

Posted on • Edited on

10

[Tutorial Git] Copiando um repositório existente (git clone)

Vá até o diretório na sua máquina em que você deseja colocar o repositório e digite no terminal:

$ git clone url_do_repositorio_que_deseja_copiar
Enter fullscreen mode Exit fullscreen mode
  • $ indica que você deve usar o usuário comum para fazer essa operação.

Caso deseje copiar, além do branch padrão, algum outro branch do repositório, digite:

$ git fetch origin nome_do_branch_remoto:nome_que_deseja_dar_para_o_branch_local
Enter fullscreen mode Exit fullscreen mode

Para pegar o link, vá até o repositório remoto desejado e na parte direita clique no botão clone or download, como mostrado na imagem abaixo.

clone or download

Top comments (1)

Collapse
 
carolinamontenegro profile image
Carolina Tainá Montenegro

Muito bom! ❤️

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay