HowTo/GitHub: mudanças entre as edições
< HowTo
(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...') |
Sem resumo de edição |
||
Linha 1: | Linha 1: | ||
{{SUBHEAD}} | |||
==Site== | ==Site== | ||
* https://github.com | * https://github.com |
Edição atual tal como às 20h32min de 1 de julho de 2024
GitHub
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: