Skip to content

Instantly share code, notes, and snippets.

@Yorkshireman
Last active August 5, 2016 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yorkshireman/8d886dbfde6b2c1afc6af9141daa5e64 to your computer and use it in GitHub Desktop.
Save Yorkshireman/8d886dbfde6b2c1afc6af9141daa5e64 to your computer and use it in GitHub Desktop.
MAC keyboard shortcuts

Terminal

Ctrl + a Go to the beginning of the line.
Ctrl + e Go to the end of the line.

Terminal & Browser

Command + Shift + { or } Select tab on the left or right.
Command + Shift + { or } Select tab on the left or right.
Command + Shift + T Re-open a tab that you've just closed.
Command + T Open a new tab.

Sublime

Sublime Cheat Sheet

Git Aliases

git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative

@chriswilding
Copy link

Ctrl + a - Go to start of line
Ctrl + e - Go to end of line

@Yorkshireman
Copy link
Author

Yorkshireman commented May 27, 2016

git fetch --all -p fetches all commits and branches from the remote repo without applying it locally. -p also removes all stale references that no longer exist remotely eg a branch that no longer exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment