mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Merge pull request #320 from tupaschoal/master
Add cheatsheet for hg, shutdown, su
This commit is contained in:
commit
a59e91ead7
3 changed files with 30 additions and 0 deletions
20
cheat/cheatsheets/hg
Normal file
20
cheat/cheatsheets/hg
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Clone a directory
|
||||
hg clone
|
||||
|
||||
# Add files to hg tracker
|
||||
hg add filename
|
||||
|
||||
# Add all files in a folder to hg tracker
|
||||
hg add folder/
|
||||
|
||||
# Create a commit with all tracked changes and a message
|
||||
hg commit -m "message"
|
||||
|
||||
# Push commits to source repository
|
||||
hg push
|
||||
|
||||
# Pull changes from source repository
|
||||
hg pull
|
||||
|
||||
# Rebase local commits to disambiguate with remote repository
|
||||
hg pull --rebase
|
8
cheat/cheatsheets/shutdown
Normal file
8
cheat/cheatsheets/shutdown
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Reboot the system immediately
|
||||
shutdown -r now
|
||||
|
||||
# Shut system down immediately
|
||||
shutdown -h now
|
||||
|
||||
# Reboot system after 5 minutes
|
||||
shutdown -r +5
|
2
cheat/cheatsheets/su
Normal file
2
cheat/cheatsheets/su
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Switch to another user account
|
||||
su USERNAME
|
Loading…
Reference in a new issue