Git in the command line

Descrição

Quick Github test based on content from CodeSchool Git Real
philyorkshire
Quiz por philyorkshire, atualizado more than 1 year ago
philyorkshire
Criado por philyorkshire mais de 8 anos atrás
54
0

Resumo de Recurso

Questão 1

Questão
How do you see the differences of files ONLY for the staged files?
Responda
  • git diff
  • git diff --staged
  • git diff -s

Questão 2

Questão
How do you roll-back the last commit and keep all the changed files locally?
Responda
  • git reset --soft HEAD^
  • git reset --hard HEAD^
  • git reset --soft HEAD^ index.html

Questão 3

Questão
How do you create a new branch and switch to that branch in one statement?
Responda
  • git checkout -b "cats"
  • git -b checkout cats
  • git checkout -b cats

Questão 4

Questão
Running 'git push origin :cats will delete the remote branch called 'cats'?
Responda
  • True
  • False

Questão 5

Questão
How would you set up an alias for 'git status' to 'git s'?
Responda
  • git config --global alias.s status
  • git config --global alias 'git s' 'git status'
  • git config --global alias.s 'git status'

Semelhante

Git/Version Control
Andrew Watters
Origin master
Kostas Diakogiannis
GitHub issue workflow
Domhnall Murphy
Git - GitHub
Nguyet Huynh
Git y GitHub Difference
Ray T.H.
Estados de Git y de los Archivos
Ray T.H.
Spring Development Training 2017: week 5
Stefcho Stefchov
Resources
Wolter Liunda
Estrutura das palavras e Processo de formação das palavras
Juliane Antoniel
II Guerra Mundial
GoConqr suporte .
Art. 5º da CF/88
Luís Felipe Mesiano