mirror of https://github.com/cheat/cheat.git
Integrated cheatsheet contents.
This commit is contained in:
commit
496de6ae89
|
@ -4,3 +4,15 @@ git config --global user.email johndoe@example.com
|
||||||
|
|
||||||
# To enable color:
|
# To enable color:
|
||||||
git config --global color.ui true
|
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
|
||||||
|
|
|
@ -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:
|
# To execute a command on a remote server:
|
||||||
ssh -t user@example.com 'the-remote-command'
|
ssh -t user@example.com 'the-remote-command'
|
||||||
|
|
||||||
|
@ -9,3 +12,5 @@ ssh -X -t user@example.com 'chromium-browser'
|
||||||
|
|
||||||
# For more information, see:
|
# For more information, see:
|
||||||
# http://unix.stackexchange.com/q/12755/44856
|
# http://unix.stackexchange.com/q/12755/44856
|
||||||
|
To execute a command on a remote server:
|
||||||
|
ssh -t user@example.com 'the-remote-command'
|
||||||
|
|
Loading…
Reference in New Issue