I work on Java project. How I can push only source directory without temporary files, build files and project files? I use Mercurial.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Mercurial will only push history, which means that it is only things that you have asked it to track (with
hg add) and later committed (withhg commit) that will be pushed.So like Jim says, you should setup
.hgignorefile. Do this before adding files to your project and double-check thathg statusonly lists files you want to add. Then runhg addto add them all.If you’ve already put the temporary files and build artifacts under version control, then you can either use
hg forgetto stop tracking them. You’ll still carry them around in the history, so if we’ve talking about tens of megabytes, then you probably want to re-create the repository.