Fichas de estudo sobre Git

69 fichas. Cada uma explica um comando, parte por parte.

#069: Criando uma tag anotada. git tag -a nome -m 'texto'
#069 git tag -a nome -m 'texto'
#068: Criando uma tag. git tag nome
#068 git tag nome
#067: listando tags disponíveis. git tag
#067 git tag
#066: O que é uma tag
#066 O que é uma tag conceito
#065: Fazendo um commit vazio sem editor. git commit --allow-empty -m 'texto'
#065 git commit --allow-empty -m 'texto'
#064: O que é o arquivo .gitignore
#064 O que é o arquivo .gitignore conceito
#063: Apagando um arquivo do seu repositório. git rm file.txt
#063 git rm file.txt
#062: O que é o arquivo .gitkeep
#062 O que é o arquivo .gitkeep conceito
#061: Ajustando a mensagem do último commit sem editor. git commit --amend -m 'texto'
#061 git commit --amend -m 'texto'
#060: Desfazendo um commit com um novo commit. git revert 09c6d68
#060 git revert 09c6d68
#059: O que é merge request
#059 O que é merge request conceito
#058: Fazendo um commit. git commit
#058 git commit
#057: Desfazendo o commit mais recente. git reset HEAD~
#057 git reset HEAD~
#056: O que é uma issue
#056 O que é uma issue conceito
#055: Conferindo as mudanças em staging. git diff --staged
#055 git diff --staged
#054: O que é um commit
#054 O que é um commit conceito
#053: Busca em mensagens de commit. git log --all --grep='termo'
#053 git log --all --grep='termo'
#052: Renomeando um arquivo. git mv origem destino
#052 git mv origem destino
#051: Fazendo um commit vazio. git commit --allow-empty
#051 git commit --allow-empty
#050: Fazendo um pull. git pull remote branch
#050 git pull remote branch
#049: Fazendo o merge de dois branches. git merge origem destino
#049 git merge origem destino
#048: Renomeando um branch. git branch -M nome
#048 git branch -M nome
#047: fazendo clone de um branch específico. git clone -b nome
#047 git clone -b nome
#046: Aplicando um stash sem remover ele da pilha. git stash apply stash@{2}
#046 git stash apply stash@{2}
#045: Jogando um stash fora. git stash drop stash@{2}
#045 git stash drop stash@{2}
#044: Removendo um stash da pilha e aplicando ele. git stash pop
#044 git stash pop
#043: como listar stashes existentes. git stash list
#043 git stash list
#042: Dando nome a um stash. git stash -m 'alterações'
#042 git stash -m 'alterações'
#041: Guardando alterações para depois. git stash push
#041 git stash push
#040: o que é stash
#040 o que é stash conceito
#039: Reaproveitando um commit. git commit -C ORIG_HEAD
#039 git commit -C ORIG_HEAD
#038: Desfazendo commits de forma soft. git reset HEAD^ --soft
#038 git reset HEAD^ --soft
#037: Desfazendo o último commit. git reset HEAD^
#037 git reset HEAD^
#036: Desfazendo commits recentes. git reset HEAD~3
#036 git reset HEAD~3
#035: Mudando de branch ao criar um branch novo. git switch -c nome
#035 git switch -c nome
#034: Mudando de branch. git switch nome
#034 git switch nome
#033: Fazendo um clone nomeado. git clone url nome
#033 git clone url nome
#032: Descartando alterações. git restore nome
#032 git restore nome
#031: Ajustar o último commit. git commit --amend
#031 git commit --amend
#030: O que é um conflito
#030 O que é um conflito conceito
#029: Como remover um arquivo de staging. git restore --staged nome
#029 git restore --staged nome
#028: Usando rebase pra corrigir um branch. git rebase --onto origem anterior branch
#028 git rebase --onto origem anterior branch
#027: Usando rebase para atualizar um branch. git rebase origem destino
#027 git rebase origem destino
#026: Apagando um branch forçadamente. git branch -D nome
#026 git branch -D nome
#025: Apagando um branch localmente. git branch -d nome
#025 git branch -d nome
#024: Como fazer o push. git push remote branch
#024 git push remote branch
#023: Como criar o rastreamento do branch no remote. git push --set-upstream remote branch
#023 git push --set-upstream remote branch
#022: Renomeando um remote. git remote rename atual novo
#022 git remote rename atual novo
#021: Como criar um Remote. git remote add nome url
#021 git remote add nome url
#020: Como listar os Remotes. git remote -v
#020 git remote -v
#019: O que é um remote
#019 O que é um remote conceito
#018: Como fazer um clone. git clone url
#018 git clone url
#017: O que é um clone
#017 O que é um clone conceito
#016: O que é um fork
#016 O que é um fork conceito
#015: O que é um diff
#015 O que é um diff conceito
#014: Trocando de branch ao criar um novo branch. git checkout -b nome
#014 git checkout -b nome
#013: O que é o HEAD
#013 O que é o HEAD conceito
#012: conferindo as alterações de cada arquivo. git diff
#012 git diff
#011: mudando de branch. git checkout nome
#011 git checkout nome
#010: o que é pull request
#010 o que é pull request conceito
#009: criando um novo branch. git branch nome
#009 git branch nome
#008: Adicionando arquivos para commit interativamente. git add -p
#008 git add -p
#007: Conferindo o histórico de commits. git log
#007 git log
#006: Conferindo a lista de arquivos alterados. git status
#006 git status
#005: o que é o ambiente de staging
#005 o que é o ambiente de staging conceito
#004: Conferindo os detalhes de um commit. git show 09c6d68
#004 git show 09c6d68
#003: Como fazer um Commit. git commit -m 'alterações'
#003 git commit -m 'alterações'
#002: Adicionando arquivos para commit. git add arquivo.txt
#002 git add arquivo.txt
#001: Iniciando um projeto. git init
#001 git init