Introdução ao git

390 palavras 2 páginas
Iniciando com GITHUB (Linux)

Instalação
Debian/Ubuntu$ apt-get install git-core
Fedora$ yum install git
Gentoo$ emerge --ask --verbose dev-vcs/git
Arch Linux$ pacman -S git
FreeBSD$ cd /usr/ports/devel/git$ make install
Solaris 11 Express$ pkg install developer/versioning/git
OpenBSD$ pkg_add git

configuração inicial
UsernameFirst you need to tell git your name, so that it can properly label the commits you make. git config --global user.name "Your Name Here"# Sets the default name for git to use when you commit
EmailGit saves your email address into the commits you make. We use the email address to associate your commits with your GitHub account. git config --global user.email "your_email@youremail.com"# Sets the default email for git to use when you commit

Your email address for Git should be the same one associated with your GitHub account. If it is not, see this guide for help adding additional emails to your GitHub account. If you want to keep your email address hidden, this guide may be useful to you.

Password cachingThe last option we need to set will tell git that you don't want to type your username and password every time you talk to a remote server.
Good to know: You need git 1.7.10 or newer to use the credential helper
To use this option, you need to turn on the credential helper so that git will save your password in memory for some time: git config --global credential.helper cache# Set git to use the credential memory cache
By default git will cache your password for 15 minutes. You can change this if you like. git config --global credential.helper 'cache --timeout=3600'# Set the cache to timeout after 1 hour (setting is in seconds)
Good to know: The credential helper only works when you clone an HTTPS repo URL. If you use the SSH repo URL instead, SSH keys are used for authentication. This guide offers help generating and using an SSH key pair.

--- criar repositório ---

touch README.md git init git add README.md

Relacionados

  • Estudante
    1002 palavras | 5 páginas
  • wireshark
    1086 palavras | 5 páginas
  • Aprendendo django
    1832 palavras | 8 páginas
  • Teste
    831 palavras | 4 páginas
  • Controlando vers es com Git e GitHub Casa do Codigo
    32528 palavras | 131 páginas
  • ESTUDO ANALÍTICO DE FERRAMENTAS DE CONTROLE DE VERSÃO DISTRIBUÍDO
    4130 palavras | 17 páginas
  • Ferramentas Controle de versãoo
    6990 palavras | 28 páginas
  • Aluno
    2034 palavras | 9 páginas
  • Teste de software
    4047 palavras | 17 páginas
  • Gerência de Configuração de Software
    436 palavras | 2 páginas