... | @@ -25,5 +25,42 @@ Para mudar de branch utilize o seguinte comando: |
... | @@ -25,5 +25,42 @@ Para mudar de branch utilize o seguinte comando: |
|
|
|
|
|
Exemplo: git checkout master
|
|
Exemplo: git checkout master
|
|
|
|
|
|
|
|
**Verificando o status da branch:**
|
|
|
|
|
|
|
|
Para verificar as modificações realizadas ou se a branch está atualizada, digite o seguinte comando:
|
|
|
|
|
|
|
|
`git status`
|
|
|
|
|
|
|
|
Exemplo de retorno:
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
**Adicionando arquivos modificados na branch:**
|
|
|
|
|
|
|
|
Digite o seguinte comando para adicionar **TODOS** os arquivos modificados:
|
|
|
|
|
|
|
|
`git add .`
|
|
|
|
|
|
|
|
Para adicionar um arquivo por vez digite:
|
|
|
|
|
|
|
|
`git add + caminho_do_arquivo`
|
|
|
|
|
|
|
|
**Para fazer o commit:**
|
|
|
|
|
|
|
|
Digite o seguinte comando:
|
|
|
|
|
|
|
|
`git commit -m "Verbo definindo a acao + #numero_da_issue"`
|
|
|
|
|
|
|
|
**Por fim, para que a branch seja atualizada, é necessário digitar o seguinte comando:**
|
|
|
|
|
|
|
|
`git push origin + nome_da_branch`
|
|
|
|
|
|
|
|
Exemplo:
|
|
|
|
git push origin juliana.torres
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|