Last active
August 29, 2015 14:06
-
-
Save jimmylatreille/f573b52e8ad5ef390da8 to your computer and use it in GitHub Desktop.
Mercirial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Mercurial Workflow | |
hg clone http://bitbucket.org/repo => Clone un depot | |
hg log => Pour affichier les log ou hg glog pour plus d'info | |
hg status => Pour afficher le status des changements | |
hg merge => Pour merger des fichier | |
hg parents ou par => Pour les anciens commit | |
hg clone project_dir new_changes_dir => Clone un depot local | |
hg commit -u username -m "un message" => Commit locally changed files. ** ou hg ci -m "Message" | |
hg push directory => Push les changements a un autre depot | |
hg update => Apres le pull mes a jour le dosier local | |
hg revert fichier => revenir a l'état initial avant le commit ** --all pour revenir sur tous | |
hg diff => Pour comparrer la différence entre deux dosier apres le pull | |
hg resolve -m fichier => Informons Mercurial que nous avons résolu le conflit | |
### Mercurial avancé | |
hg tip -vp => Montre les dernier changement commiter. | |
hg incoming repo_dir => nous dit quelles cahngements après le pull | |
hg outgoing repo_dir => nous dit quelles cahngements le push vas occasionné | |
With mecurial you'll end up with a number of directories that represent | |
different pieces of work (similar to branches in git). | |
eg | |
project => Contains a local clone of the master remote repo or is the local master repo | |
project_bug_11 => Changes required to fix bug_11 | |
project_feature_foo => Changes required to implement feature foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment