Difference between revisions of "Git"
From ProgClub
(Create new git project) |
(Fixing link to gitweb...) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [http://git-scm.com/ Git] is a version control system used by ProgClub as part of its [[SCM|Software Configuration Management]] to store files related to its [[projects]]. | ||
+ | |||
+ | = Gitweb = | ||
+ | |||
+ | You can browse all of ProgClub's git repositories here: | ||
+ | |||
+ | * [https://www.progclub.net/gitweb/ gitweb] | ||
+ | |||
= Create new git project = | = Create new git project = | ||
+ | |||
+ | To create a new project in git: | ||
$ ssh honesty.progclub.net | $ ssh honesty.progclub.net | ||
Line 6: | Line 16: | ||
# mkdir repo-name.git | # mkdir repo-name.git | ||
# cd repo-name.git | # cd repo-name.git | ||
− | # git init --bare | + | # git init --bare |
# echo repo-name > desription | # echo repo-name > desription | ||
# mv hooks/post-receive.sample hooks/post-receive | # mv hooks/post-receive.sample hooks/post-receive | ||
Line 14: | Line 24: | ||
Add: | Add: | ||
+ | [core] | ||
+ | sharedrepository = 0666 | ||
+ | |||
[hooks] | [hooks] | ||
mailinglist = vcs@progclub.org | mailinglist = vcs@progclub.org |
Latest revision as of 16:10, 8 April 2014
Git is a version control system used by ProgClub as part of its Software Configuration Management to store files related to its projects.
Gitweb
You can browse all of ProgClub's git repositories here:
Create new git project
To create a new project in git:
$ ssh honesty.progclub.net $ sudo -s # cd /git # mkdir repo-name.git # cd repo-name.git # git init --bare # echo repo-name > desription # mv hooks/post-receive.sample hooks/post-receive # chown -R www-data:user . # vim config
Add:
[core] sharedrepository = 0666 [hooks] mailinglist = vcs@progclub.org
# vim hooks/post-receive
Uncomment:
. /usr/share/doc/git-core/contrib/hooks/post-receive-email
Then from your workstation:
$ git clone ssh://www.progclub.net/git/repo-name.git $ cd repo-name $ git commit -m "Initial empty commit" --allow-empty $ git push origin master