Last active
August 30, 2018 12:27
-
-
Save robsonfaxas/9ce9f9ea428459bf5e4deabd0b2031eb to your computer and use it in GitHub Desktop.
#git - 2 - INIT um repositório e ADD files para Staged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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