Gerenciamento de Arquivos

Touch

$ touch arquivo.txt
$ git status
On branch main

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        arquivo.txt

nothing added to commit but untracked files present (use "git add" to track)

Git Add

Adicionar o arquivo ao controle de versão Git:

$ git add arquivo.txt
$ git status
On branch main

No commits yet

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)
        new file:   arquivo.txt

Git Reset

git reset

Reset do controle de versão Git:

Git Commit

Alteração

Alterar o arquivo arquivo.txt, adicionar e commit:

Last updated