philyorkshire
Quiz por , criado more than 1 year ago

Quick Github test based on content from CodeSchool Git Real

57
0
0
philyorkshire
Criado por philyorkshire mais de 8 anos atrás
Fechar

Git in the command line

Questão 1 de 5

1

How do you see the differences of files ONLY for the staged files?

Selecione uma das seguintes:

  • git diff

  • git diff --staged

  • git diff -s

Explicação

Questão 2 de 5

1

How do you roll-back the last commit and keep all the changed files locally?

Selecione uma das seguintes:

  • git reset --soft HEAD^

  • git reset --hard HEAD^

  • git reset --soft HEAD^ index.html

Explicação

Questão 3 de 5

1

How do you create a new branch and switch to that branch in one statement?

Selecione uma das seguintes:

  • git checkout -b "cats"

  • git -b checkout cats

  • git checkout -b cats

Explicação

Questão 4 de 5

1

Running 'git push origin :cats will delete the remote branch called 'cats'?

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 5 de 5

1

How would you set up an alias for 'git status' to 'git s'?

Selecione uma das seguintes:

  • git config --global alias.s status

  • git config --global alias 'git s' 'git status'

  • git config --global alias.s 'git status'

Explicação