Friday, June 13, 2008

Own versioning repo

SVN is great as a version control system if you have many developers and require a single point of authoritative reference point for everyone. But if you're working on your own, it could get cumbersome since for every project you'd have to set up a repo first and then you can commit stuff. What's easier, mercurial. How easy?

hg init
hg add *
hg commit -m "First commit"

And then the subsequent changes?

hg commit -m "Comment"

Need to browse the file changes and the like?

hg serve -n "Name of repo" -p 8091

-p is which port it'd run on localhost from. So the command above should be accessed at http://localhost:8091/. For more reference go to http://hgbook.red-bean.com/hgbook.html

No comments:

Is Blogging No Longer a Thing?

As I embark on my new journey to learn the Rust programming language, I find myself pondering—where have all the blogs gone? In search of pr...