Git hub

24 flashcardsby alvesXSSS
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
Como criar um repositório gerenciado pelo git localmente?
git init
2
Como enviar os arquivos para o stage?
git add .
3
Como verificar os arquivos que estão no stage?
git status
4
Como salvar uma versão remotamente enquanto ela estiver no stage?
git commit -m "Mensagem"
5
Como associar o repositório remoto com o local?
git remote add origin chave ssh
6
Como enviar definitivamente a versão para o repositório remoto?
git push
7
Como trazer um projeto remoto localmente?
git clone chave ssh
8
Comi verificar as versões de algum projeto?
git log
9
Como verificar as versões de algum projeto resumidamente?
git log --oneline
10
Como tirar arquivos do stage?
git reset
11
Como adicionar apenas um arquivo no stage?
git asd arquivo.html
12
Como voltar arquivos para o estado anterior temporariamente?
git checkout número do algoritmo anterior
13
Como voltar arquivos anteriores por uma quantidade?
git checkout HEAD~2 ou git checkout HEAD~1...
14
Como excluir as diferenças de um commit anterior que você está manipulando agora?
git clean -df
15
Para que serve um gitignore?
Ele serve para ignorar arquivos quando for usar uma framework
16
Como voltar para o commit anterior?
git checkout -- .
17
Como digitar algo quando abrir o vim?
Apertando a tecla I
18
Como pôr nome em um commit usando o editor vim?
Aperta a tecla I e depois escreve o nome do commit
19
Como sair do vim salvando alterações?
Aperta no esc, depois insere :ww e aperta enter
20
Como desfazer o último commit sem desfazer modificações nos arquivos?
git reset --soft HEAD~1
21
Como desfazer o penúltimo commit e as modificações até ele?
git reset --Hard HEAD~1
22
Como atualizar o projeto local baseado no projeto remoto?
git pull origin main
23
Como sobrescrever em todos os arquivos remotos algo?
git push -f
24
Como transportar um repositório local para outro repositório?
git remote set-url origin outro repositório
Study all 24 cards for free

More Languages flashcards

pvh13 cardsLanguages · Romanian → CzechZuzanaJPN 113 - Location Words10 cardsLanguages · Japanese → LatinVioMiintermediate 単語 ch 13201 cardsLanguages · English → JapaneseschtebieSaksan sanastoa (Text 2)117 cardsLanguages · Finnish → GermanVekeFrench-English Phrases: Opinions and Fashion85 cardsLanguages · French → EnglishKeeganSvenska 1.6 - Reizen66 cardsLanguages · Dutch → SwedishSeppeGIÁO DỤC+GIA ĐÌNH+SỨC KHỎE+XÃ HỘI50 cardsLanguages · Vietnamese → EnglishMyoukiPAST TIMES ⚽️ 41 cardsLanguages · English → ItalianAngie28 - moving31 cardsLanguages · English → DutchDanielLatin 126 cardsLanguages · Latin → EnglishMaddyLab Report21 cardsLanguages · English → FrenchJAHNTunisian Arabic Vocabulary (Time)17 cardsLanguages · Arabic → Englishan OutLearn student

All Languages decks

Study these decks in the app

Free on iPhone, Android, Mac and the web. Add any deck to your account in one tap.

Download on the App StoreGet it on Google Play
Study all 24 cards for free