This feed contains pages tagged "git".

If you have several projects in one git tree, perhaps something like:

repo/
    .git/
    proj1/
    proj2/

And you want several individual git repos:

proj1/
    .git/
proj2/
    .git/

Then to take all sub-folders from ~/git/src and create new git repos in ~/git:

set -e
srcrepo=~/git/src
cd git_tmp
git clone $srcrepo ./orig
mkdir new
cd new
for dir in ../orig/*;
do
    dir=$(basename $dir)
    git clone ../orig $dir
    pushd $dir
    git filter-branch --subdirectory-filter $dir HEAD -- --all
    git reset --hard
    git gc --aggressive
    git prune
    popd
    git clone --bare $dir ~/git/$dir
done
rm -rf ~/git_tmp/*
Posted Mon 19 Oct 2009 22:17:10 BST Tags: git

To convert a set of subversion repos in ~/svn to git repos in ~/git

set -e
git config svn.authorsfile << EOF
joe = Joe Milbourn <joe.milbourn+git@gmail.com>
EOF
mkdir ~/git_tmp
cd ~/git_tmp
for x in ~/svn/*;
do
    repo=$(basename $x)
    mkdir $repo
    pushd $repo
    git svn init file://$HOME/svn/$repo --no-metadata
    git svn fetch
    popd
    git clone --bare $repo ~/git/$repo
done
rm -rf git_tmp
Posted Mon 19 Oct 2009 16:34:43 BST Tags: git

_twyt provides intelligent auto completion for the twitter client Twyt. Features include specific option completion for all commands, and intelligent completion for twitter names and twyt users.

To install pop the file _twyt somewhere in your fpath and restart zsh (assuming you've set up completion).

The latest version of _twyt can autocomplete tweet message IDs too, but it requires a patch to Twyt.

Posted Mon 19 Oct 2009 12:44:54 BST Tags: git