philyorkshire
Quiz von , erstellt am more than 1 year ago

Quick Github test based on content from CodeSchool Git Real

54
0
0
philyorkshire
Erstellt von philyorkshire vor mehr als 8 Jahre
Schließen

Git in the command line

Frage 1 von 5

1

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

Wähle eine der folgenden:

  • git diff

  • git diff --staged

  • git diff -s

Erklärung

Frage 2 von 5

1

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

Wähle eine der folgenden:

  • git reset --soft HEAD^

  • git reset --hard HEAD^

  • git reset --soft HEAD^ index.html

Erklärung

Frage 3 von 5

1

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

Wähle eine der folgenden:

  • git checkout -b "cats"

  • git -b checkout cats

  • git checkout -b cats

Erklärung

Frage 4 von 5

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 5 von 5

1

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

Wähle eine der folgenden:

  • git config --global alias.s status

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

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

Erklärung