mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-01 05:21:06 +01:00
21 lines
383 B
Plaintext
21 lines
383 B
Plaintext
|
# 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
|