Articles tagged "git"

SparkleShare and host (my) your own git server

This is not a complete tutorial but a list of steps (I hope all needed) to get it working

Install SparkleShare on client

Download source from (look at the news!) Look at the README for required packages!

tar xzf sparkleshare-0.2-beta1.tar.gz
cd sparkleshare-0.2-beta1
./configure --prefix=/opt/sparkleshare
sudo make install

Prepare directories and start SparkeShare

As user:

% cd
% mkdir -p SparkleShare/.tmp
% /opt/sparkleshare/bin/sparkleshare &

Let it create a new SSH key for you.

Stop SparkleShare

There's a menu for it... ;-) You don't need to add a remote repository here.

Find your SparkeShare-SSH-Public-Key

% cd ~/.config/sparkleshare
% cat *.pub

You need the contents for the next step

On your own SparkleShare-Git-Server

% sudo adduser --disabled-password USERNAME
% sudo mkdir .ssh
% sudo vi .ssh/authorized_keys ### Copy&Paste your SparkleShare-SSH-Public-Key
% sudo mkdir FooBar.git
% sudo cd FooBar.git
% sudo git init .
% sudo touch README
% sudo git add README
% sudo git commit -m "Initial commit"
% cd ..
% sudo chown -R USERNAME .

Clone your git repository on the client

As user:

% cd ~/SparkleShare
% git clone USERNAME@SERVER:FooBar.git

Start SparkleShare

% /opt/sparkleshare/bin/sparkleshare &

check_netappfiler on github - let's have fun!

Just a short note:

check_netappfiler's code is now available on GitHub. I didn't import the whole history (just the last... uh... about 6 "releases") because there was(is) much crap in my original Subversion repository.

Fork it! Add code! Fix errors! Send "pull request"s! ;-)

I'm not sure if it while be there forever - but hey! Let's use this wonderful site!

cat ~/.gitconfig

br = branch
st = status
log1 = log --pretty=oneline --abbrev-commit
rlog = log --pretty=format:\"%h %Cblue%cr%Creset %an %Cgreen%s%Creset\"
ui = auto
[color "branch"]
current = "yellow bold"
local = cyan
remote = "red bold"
[color "diff"]
new = cyan
old = magenta
frag = yellow
meta = green
commit = normal
whitespace = "white reverse"
[color "status"]
changed = yellow
added = magenta
untracked = "blue bold"
nobranch = "red bold"