systems:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
systems:git [2012/09/20 23:30] dspsystems:git [2021/04/06 08:06] (current) – rename master to main sergey
Line 7: Line 7:
 ===== Creating a new repository ===== ===== Creating a new repository =====
   - You need access to **git.php.net:gitolite-admin.git**   - You need access to **git.php.net:gitolite-admin.git**
-  - Add the repository in //conf/gitolite.conf//+  - Add the repository to the long long list of repos in //conf/gitlite.conf// 
 +  - OR Add the repository itself to //conf/gitolite.conf//
     - Ensure RW+ is set to //@all//     - Ensure RW+ is set to //@all//
     - Ensure R is set to //daemon gitweb//     - Ensure R is set to //daemon gitweb//
Line 13: Line 14:
     - Add a description at the end of the file     - Add a description at the end of the file
     - **Do not give access to any other user except daemon and gitweb**     - **Do not give access to any other user except daemon and gitweb**
 +  - Create the repo on github. Use dash instead of slashes e.g. //pecl/numbers/bitset// becomes //pecl-numbers-bitset// on github
   - Import the repository using svn2git.   - Import the repository using svn2git.
-    - An author map will be made available soon +    - git init reponame 
 +    - cd reponame 
 +    - svn2git %%--verbose%% %%--authors%% /path/to/authors.map http://svn.php.net/repository/pecl/package 
 +    - The authors.map is in the gitolite-admin.git repo.  
     - Push it to the newly created repository.     - Push it to the newly created repository.
 +      - git push %%--all%% https://git.php.net/push/REPONAME
 +      - git push %%--tags%% https://git.php.net/push/REPONAME
     - Make sure all branches are pushed     - Make sure all branches are pushed
   - Add the appropriate //hooks.mailinglist// config variable   - Add the appropriate //hooks.mailinglist// config variable
     - Do that **AFTER** you pushed the initial repository or people will hate you.     - Do that **AFTER** you pushed the initial repository or people will hate you.
   - Rename <REPO> to <REPO>.git in the //global_avail// file in SVNROOT.   - Rename <REPO> to <REPO>.git in the //global_avail// file in SVNROOT.
 +  - A GitHub repository should be created by an "owner" of the PHP-GitHub project using https://main.php.net/manage/github.php
  
 karma & co is going to be installed automatically. If you have problem call dsp@php.net. karma & co is going to be installed automatically. If you have problem call dsp@php.net.
systems/git.1348183825.txt.gz · Last modified: 2017/09/22 13:28 (external edit)