2. yum install mercurial
3. configure https certificate authorities. create file /etc/mercurial/hgrc contain
[web] cacerts = /etc/pki/tls/certs/ca-bundle.crt
4. enter the path of source code, initial hg repository
> cd /path/of/source
>hg init
5. create a file .hg/hgrc contain
[ui] username = FirstName LastName
6. add file into repository
>hg add
7. commit repository
>hg commit
edit the file to remove some HG: prefix
8. push the repository
>hg push https://your-account@bitbucket.org/your-account/sample-repo
9. Congratulation! You can browse your code on bitbucket.org now.
Reference:
http://mercurial.selenic.com/wiki/Mercurial
http://mercurial.selenic.com/wiki/CACertificates
http://mercurial.selenic.com/wiki/QuickStart
沒有留言:
張貼留言