How do you see the differences of files ONLY for the staged files?
git diff
git diff --staged
git diff -s
How do you roll-back the last commit and keep all the changed files locally?
git reset --soft HEAD^
git reset --hard HEAD^
git reset --soft HEAD^ index.html
How do you create a new branch and switch to that branch in one statement?
git checkout -b "cats"
git -b checkout cats
git checkout -b cats
Running 'git push origin :cats will delete the remote branch called 'cats'?
How would you set up an alias for 'git status' to 'git s'?
git config --global alias.s status
git config --global alias 'git s' 'git status'
git config --global alias.s 'git status'