Skip to content

Instantly share code, notes, and snippets.

@kuzminT
Last active October 10, 2018 14:33
Show Gist options
  • Save kuzminT/a4a7923b68b7f4a2e39bf0e4c8124b48 to your computer and use it in GitHub Desktop.
Save kuzminT/a4a7923b68b7f4a2e39bf0e4c8124b48 to your computer and use it in GitHub Desktop.
Mercurial tips

hg commit

# Перечислить конкретные файлы, которые нужно коммитить
hg commit file_1 file_2
hg commit foo.c foo.h dir/

# исключить файлы из коммита
hg commit -X file_3

# Включить в коммит только файлы, подходящие под паттерн
hg commit -I foo.c -I "**/*.h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment