This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
devel:git-commit-guidelines [2014/11/10 15:26] miconda [Backportin Commits] |
devel:git-commit-guidelines [2015/01/09 18:34] miconda [Delete Remote Branch] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== GIT Commit Guidelines ====== | ====== GIT Commit Guidelines ====== | ||
+ | |||
+ | ===== GIT Repository Location ===== | ||
+ | |||
+ | Starting with December 15, 2014, the main GITH repository of Kamailio project is hosted on Github at: | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | A read-only mirror is maintained at: | ||
+ | |||
+ | * git.kamailio.org (still accessible via git.sip-router.org) - web interface: | ||
+ | * http:// | ||
===== Cloning GIT Repository ===== | ===== Cloning GIT Repository ===== | ||
Line 19: | Line 30: | ||
< | < | ||
- | git clone ssh://userid@git.sip-router.org/sip-router | + | git clone https://github.com/kamailio/ |
</ | </ | ||
- | Replace **userid** with your developer GIT username. | + | or if you prefer via ssh: |
+ | |||
+ | < | ||
+ | git clone ssh+git:// | ||
+ | </ | ||
+ | |||
+ | You may be asked for your Github | ||
The clone is tracking automatically the remote **master** branch (the development version). | The clone is tracking automatically the remote **master** branch (the development version). | ||
Line 31: | Line 48: | ||
< | < | ||
- | git clone --depth 1 git://git.sip-router.org/sip-router | + | git clone https:// |
+ | </ | ||
+ | |||
+ | You can also clone (read-only, not for developers that want to push back commits) from the real-time mirror server: | ||
+ | |||
+ | < | ||
+ | git clone --depth 1 git://git.kamailio.org/kamailio | ||
</ | </ | ||
Line 283: | Line 306: | ||
< | < | ||
git push origin :< | git push origin :< | ||
+ | </ | ||
+ | |||
+ | As of Git v1.7.0, a remote branch can be deleted using: | ||
+ | |||
+ | < | ||
+ | git push origin --delete < | ||
</ | </ |