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?
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'?
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'