An extension of my short term memory:
revert changes to file | git checkout <filespec> |
create a new local branch and switch to it | git checkout -b <branch_name> |
create a new local branch | git branch <branch_name> |
switch branch | git checkout <branch_name> |
commit to remote | git push origin master |
display remote details | git remote -v |
list files containing string | git grep <search_text> |