Integrated cheatsheet contents.

This commit is contained in:
Chris Lane 2013-08-26 20:34:36 -04:00
commit 496de6ae89
2 changed files with 17 additions and 0 deletions

View File

@ -4,3 +4,15 @@ git config --global user.email johndoe@example.com
# To enable color:
git config --global color.ui true
# To stage all changes for commit:
git add --all
# To commit staged changes
git commit -m "Your commit message"
# To push to the tracked master branch:
git push origin master
# To push to a specified repository:
git push git@github.com:username/project.git

View File

@ -1,3 +1,6 @@
# To ssh via pem file (which normally needs 0600 permissions):
ssh -i /path/to/file.pem user@example.com
# To execute a command on a remote server:
ssh -t user@example.com 'the-remote-command'
@ -9,3 +12,5 @@ ssh -X -t user@example.com 'chromium-browser'
# For more information, see:
# http://unix.stackexchange.com/q/12755/44856
To execute a command on a remote server:
ssh -t user@example.com 'the-remote-command'