Using Mercurial (hg), how to push just one file or one directory out?
Posted
by Jian Lin
on Stack Overflow
See other posts from Stack Overflow
or by Jian Lin
Published on 2010-06-10T03:42:45Z
Indexed on
2010/06/10
3:52 UTC
Read the original article
Hit count: 273
Using Mercurial, we can commit one file by using
hg commit file.rb
or 1 folder
hg commit foldername
But how can we push just 1 file or 1 folder out?
The whole project can be pushed using
hg push ssh://[email protected]//project/code/preliminary
but there seems to be no way to push out just 1 file or 1 folder?
I tried the following and they don't work:
hg push ssh://[email protected]//project/code/preliminary app/views/index.html.erb
or
hg push ssh://[email protected]//project/code/preliminary/app/views/index.html.erb
© Stack Overflow or respective owner