Skip to content

Instantly share code, notes, and snippets.

@robsonfaxas
Last active August 30, 2018 12:27
Show Gist options
  • Save robsonfaxas/9ce9f9ea428459bf5e4deabd0b2031eb to your computer and use it in GitHub Desktop.
Save robsonfaxas/9ce9f9ea428459bf5e4deabd0b2031eb to your computer and use it in GitHub Desktop.
#git - 2 - INIT um repositório e ADD files para Staged
-- Inicializar repositório: entre no folder que deseja iniciar um repositório novo e:
git init
-- ## 4 estados: untracked, unmodified, modified e staged
-- adicionar arquivo para staged:
git add ReadMe.txt
-- adicionar todos os arquivos para staged
git add -A
-- verificar estado dos arquivos:
git status
-- commitar todos arquivos em staged:
git commit -am "Adição de arquivo ReadMe.txt"
-- ## nesse ponto, o arquivo ReadMe.txt foi para unmodified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment