vcs:gitfaq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vcs:gitfaq [2019/10/12 09:47] – nikic | vcs:gitfaq [2021/04/06 08:00] (current) – rename master to main sergey | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | The PHP git repositories are at http:// | + | The PHP git repositories are at https:// |
PEAR repositories are in https:// | PEAR repositories are in https:// | ||
Line 33: | Line 33: | ||
===== Clone URL and Push URL ==== | ===== Clone URL and Push URL ==== | ||
- | Read only urls are | + | Clone/Push URL |
- | + | ||
- | http:// | + | |
- | git:// | + | |
- | + | ||
- | Clone/Push URL (always requires password) | + | |
- | https://git.php.net/push/ | + | https://github.com/php/ |
SSH URL | SSH URL | ||
| | ||
- | git@git.php.net:php-src.git | + | git@github.com:php/php-src.git |
Hint: set the push URL (https or git@) with (see also, Quickstart below) | Hint: set the push URL (https or git@) with (see also, Quickstart below) | ||
Line 95: | Line 90: | ||
===== Quickstart ===== | ===== Quickstart ===== | ||
- | $ git clone http://git.php.net/ | + | $ git clone https://github.com/php/ |
$ cd php-src | $ cd php-src | ||
- | // if you want to push throuh https | ||
- | $ git config remote.origin.pushurl https:// | ||
// update repository | // update repository | ||
$ git pull --rebase | $ git pull --rebase | ||
Line 109: | Line 102: | ||
Always commit to the oldest branch. If your commit is good for PHP 5.6 and PHP 7.0, commit to PHP 5.6. Then merge your commit. | Always commit to the oldest branch. If your commit is good for PHP 5.6 and PHP 7.0, commit to PHP 5.6. Then merge your commit. | ||
- | $ git clone http://git.php.net/ | + | $ git clone https://github.com/php/ |
.... | .... | ||
$ git branch --track PHP-5.6 origin/ | $ git branch --track PHP-5.6 origin/ | ||
Line 118: | Line 111: | ||
$ git commit Zend/zend.c | $ git commit Zend/zend.c | ||
$ git checkout PHP-7.0 | $ git checkout PHP-7.0 | ||
- | $ git merge --log PHP-5.6 | + | $ git merge PHP-5.6 |
$ git checkout master | $ git checkout master | ||
- | $ git merge --log PHP-7.0 | + | $ git merge PHP-7.0 |
$ git push | $ git push | ||
Line 132: | Line 125: | ||
cd | cd | ||
- | git clone git@git.php.net:php-src.git | + | git clone git@github.com:php/php-src.git |
or if you're behind a firewall: | or if you're behind a firewall: | ||
cd | cd | ||
- | git clone https://git.php.net/ | + | git clone https://github.com/php/ |
cd ~/php-src | cd ~/php-src | ||
- | git config remote.origin.pushurl https:// | ||
==== Recommended: | ==== Recommended: | ||
Line 274: | Line 266: | ||
===== Using SSH ==== | ===== Using SSH ==== | ||
- | * Add your SSH key to your profile on http://master.php.net/ | + | * Add your SSH key to your profile on https://main.php.net/ |
* you can set multiple keys in separate lines | * you can set multiple keys in separate lines | ||
* if you get the "the ssh key doesn' | * if you get the "the ssh key doesn' | ||
* Wait 10 minutes | * Wait 10 minutes | ||
- | * Clone from or set new repository to git@git.php.net:php-src.git | + | * Clone from or set new repository to git@github.com:php/php-src.git |
For web git repositories, | For web git repositories, | ||
- | git config remote.origin.pushurl git@git.php.net:/web/qa.git | + | git config remote.origin.pushurl git@github.com:php/php-src.git |
vcs/gitfaq.1570873657.txt.gz · Last modified: 2019/10/12 09:47 by nikic