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:02] miconda [Useful Commands] |
devel:git-commit-guidelines [2014/12/15 13:53] miconda [Read-Only Cloning of GIT Repository] |
||
---|---|---|---|
Line 19: | Line 19: | ||
< | < | ||
- | 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 37: | ||
< | < | ||
- | 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 205: | Line 217: | ||
lib/ | lib/ | ||
</ | </ | ||
- | ===== Backportin | + | ===== Backporting |
Commits that include fixes to issues affecting stable branches must be backported using: | Commits that include fixes to issues affecting stable branches must be backported using: | ||
Line 222: | Line 234: | ||
The **git cherry-pick** command must be executed inside the branch where the commit has to be backported, after doing a **git pull origin**. | The **git cherry-pick** command must be executed inside the branch where the commit has to be backported, after doing a **git pull origin**. | ||
+ | |||
+ | **Note**: the commit must be done first time in master, then backported to the latest stable branch, using cherry-pick -x with commit id from master. The backported commit gets a new id in the latest stable branch, that commit id must be used when cherry-picking to the previous stable branch. When willing to backport to older versions, keep using the commit id from the next stable branch. | ||
===== Useful Commands ===== | ===== Useful Commands ===== |