Changes

From Amahi Wiki
Jump to: navigation, search
182 bytes added ,  03:58, 17 March 2012
chkconfig git on
/etc/init.d/git start}}</li>
<li>Set User information (change '''user.name''' and '''user.email''' accordingly)</li>
{{Code|git config --global user.name "MyHDA"
git config --global user.email myhda@localhost}}
<li>Create repository
{{Code|cd /var/cache/git/
mkdir test.gitcd test.gitgit init --baregit clone ../test.git test}}</li>
<li>Add test file and a short description
{{Code|echo 'test' > README
git add README
git commit -a -m "initial README file"git push origin mastersed -i '1d' /var/cache/git/test.git​test​/.git/descriptionecho 'Test Repo' >> /var/cache/git/test.git​test​/.git/description}}</li><li>Edit '''/var/cache/git/test​.gittest/.git/config''' and add the following at the bottom(change '''MyHDA''' as desired)
{{Text|Text=[gitweb]
owner = My HDAMyHDA}}</li>
<li>Add to bottom of '''/etc/gitweb.conf''' file
{{Text|Text=$feature{'blame'}{'default'} = [undef];
12,424

edits