Git in the command line

Beschreibung

Quick Github test based on content from CodeSchool Git Real
philyorkshire
Quiz von philyorkshire, aktualisiert more than 1 year ago
philyorkshire
Erstellt von philyorkshire vor etwa 9 Jahre
66
0

Zusammenfassung der Ressource

Frage 1

Frage
How do you see the differences of files ONLY for the staged files?
Antworten
  • git diff
  • git diff --staged
  • git diff -s

Frage 2

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

Frage 3

Frage
How do you create a new branch and switch to that branch in one statement?
Antworten
  • git checkout -b "cats"
  • git -b checkout cats
  • git checkout -b cats

Frage 4

Frage
Running 'git push origin :cats will delete the remote branch called 'cats'?
Antworten
  • True
  • False

Frage 5

Frage
How would you set up an alias for 'git status' to 'git s'?
Antworten
  • git config --global alias.s status
  • git config --global alias 'git s' 'git status'
  • git config --global alias.s 'git status'
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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
Öff.Recht - POR Streitigkeiten
myJurazone
Sops EURO-FH B.Sc.
??? ???
Vetie - Radiologie 2017
Fioras Hu