HowTo/GitHub

De WIKIPORTO
Revisão de 20h27min de 1 de julho de 2024 por Porto (discussão | contribs) (Criou página com '==Site== * https://github.com ** https://github.com/WikiPorto ==Instalação== ===Ubuntu=== sudo apt install git ===Configuração SSH=== * [https://docs.github.com/en/authentication/connecting-to-github-with-ssh Connecting to GitHub with SSH] ** [https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent Generating a new SSH key and adding it to the ssh-agent] ssh-keygen -t rsa -C "your_email@example...')
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)

Site

Instalação

Ubuntu

sudo apt install git

Configuração SSH

ssh-keygen -t rsa -C "your_email@example.com"
cat ~/.ssh/id_rsa.pub

Teste

ssh -T git@github.com

Outras fontes:

Repositório

No site do GitHub, na página do repositório do projeto, copiar o link HTTPS em Code.

No local onde vai ser baixada a pasta do projeto, executar os seguintes comandos:

git clone <colar o link HTTPS copiado do site do GitHub>
git config --global user.name "UserNameExemple"
git config --global user.email "your_email@example.com"
git remote set-url origin git@github.com:username/your-repository.git

Outras fontes: