Gerenciamento Básico de Branches
Cria
$ git branch feature/novo_arquivo
$ git branch
feature/novo_arquivo
* mainSeleciona
$ git checkout feature/novo_arquivo
Switched to branch 'feature/novo_arquivo'
$ git branch
* feature/novo_arquivo
mainCommit
$ ls
arquivo.txt
$ cat arquivo.txt # arquivo vazio
$ echo "Teste">> arquivo.txt
$ cat arquivo.txt
Teste
$ git add --all
$ git commit -m "Novo Arquivo"
[feature/novo_arquivo 8791ac7] Novo Arquivo
1 file changed, 1 insertion(+)
$ git status
On branch feature/novo_arquivo
nothing to commit, working tree cleanDiferença entre branches
Renomeia
Exclui
Last updated