Git is an open-source DVCS (Distributed Version Control System).

learn more… | top users | synonyms

10
votes
2answers
149 views

Git command: push the latest commit and email the diff in colour

This is my first attempt a for git command I can use to push the latest commit and email the diff. Story behind how it came up: http://goo.gl/3NEHvn Revision 1 Scroll down for 2nd Revision import ...
3
votes
1answer
83 views

Make a git repository read-only over ssh depending on the key used

I want a git repository, accessible over ssh, to be read-only when used with certain keys. With other keys access to the full system is okay. Here is my solution. git-readonlyshell: if echo "$2" | ...
0
votes
1answer
55 views

Checking if a git repository needs to be updated

I made a small Vim distribution that uses vundle. I decided to make a small function that checks if the repository must be updated. """""""""""""""""""""""""""""""""""""""""""""""""" "Update the ...
5
votes
1answer
76 views

Coverage processing on multiple Java projects with gmake

As part of my data collection, I have to run multiple kinds of coverage processing on multiple Java projects. Below is my main Makefile intented only for gmake. Portability is not a requirement for me ...
2
votes
2answers
165 views

Pair Programming matrix: room for improvement?

At work, we have a "pair programming ladder" where you can keep track of who is pairing with whom (based on check-ins). The idea is to promote "promiscuous pairing" where each developer eventually ...
6
votes
2answers
388 views

Shell script to help with branch management for tasks in git

I found nvie's git branching model simple enough to grasp and suitable for my projects - but the frontend supplied at GitHub was far too complex for me to understand. Hence, I wrote this script to ...
2
votes
1answer
173 views

Run all scripts in a sub-directory

When git runs my post-receive hook, I'd like it to run all the scripts in the subdirectory post-receive.d. My script is as follows #!/bin/bash SOURCE="${BASH_SOURCE[0]}" DIR="$( dirname "$SOURCE" )" ...
3
votes
3answers
246 views

Shell script to sync dotfiles repository

I'm doing the git dot files thing and created a script -- my first Unix shell script -- to synchronise the repo dot files with those in the user's home. It checks which dot files exist in the repo ...
2
votes
2answers
409 views

Python script for a git repository

I am a newbie regarding Python and I would like to improve my Python-fu. As a learning exercise, I decided to write a script for helping me maintain my Unix configuration/dot-files under a git ...
3
votes
1answer
129 views

Cleaning multiple build directories

I'm cleaning build directories produced by GNOME build tool, JHBuild. This tool either downloads tarballs or clones git repositories, depending on set-up. After that, it proceeds to compilation (and ...