Skip to content

Instantly share code, notes, and snippets.

@ricardoub
Last active May 31, 2019 14:28
Show Gist options
  • Save ricardoub/2b1ad505708c668966383de2b1d9bd44 to your computer and use it in GitHub Desktop.
Save ricardoub/2b1ad505708c668966383de2b1d9bd44 to your computer and use it in GitHub Desktop.
GIT - Initial Project Configuration
GIT - criação do repositório
git init
git config --list
git config --global user.name 'User Name'
git config --global user.email username@mail.com
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git remote add origin git@github.com:username/projectname.git
GIT - guarda das credenciais
Determine o modo de armazenamento das credenciais:
git config credential.helper store - guarda guarda permanentemente.
git config credential.helper cache - guarda em cache por 5 minutos (padrão).
git config --global credential.helper cache
GIT - commit iniciais
echo 'User Name' >> contributors.txt
git add contributors.txt
git commit -m 'Initial commit with contributors'
git add .
git commit -m 'Project Name - create-project'
git push origin master
GIT - 1º release
git tag 'v0.1.0'
git push origin master
git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment