Git is an open-source DVCS (Distributed Version Control System).
3
votes
3answers
66 views
Base for iterating over git history - is this code clean?
I wanted to do some statistics over the history of a Git repository. At first I tried using GitPython, but it wasn't as trivial as I imagined it to be. In the end, I just call the necessary git ...
0
votes
0answers
14 views
How do I keep a database of repo stats and user stats, in sync with github? [on hold]
How do I keep a database of repo stats and user stats, in sync with GitHub?
I know that I can use
curl https://api.github.com/repos/reggi/handwritten
and
...
7
votes
2answers
134 views
Missing level of technical depth (Common Ancestor)
I recently have given a coding test in a reputable IT company. There were three coding questions.
They refused me by saying that
as we felt they didn't demonstrate the level of technical depth ...
7
votes
0answers
106 views
Bash script to clone all public repos or gists for a specified user, optionally to a directory of choice
I wrote this script as a way to backup and/or download quickly a set of repos or gists from a user. I don't have any major concerns but I'm a noob at bash scripting, and I've been scouring the ...
6
votes
1answer
60 views
Script to checkout multiple repositories to a certain commit hash
I am writing a script which checkout a git repo to certain commit hash, do something and switch back to master. The purpose of ...
7
votes
1answer
91 views
Function launching default editor
I have written a function that launches the default editor set in git config, right now I have managed to get it working for Sublime, nano and Vim.
...
10
votes
2answers
381 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)
...
3
votes
1answer
230 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:
...
1
vote
1answer
60 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.
...
6
votes
1answer
83 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. ...
2
votes
2answers
184 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
578 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
215 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 ...
4
votes
1answer
146 views
NSTask with Git
This is my first real Cocoa app that I am writing. The first version of this app was just one long applescript. So in my app auto git, I have an NSTask instead of Tell terminal. My code looks like ...
2
votes
1answer
194 views
Backup utility for local git repositories
After reading this Stack Overflow question I decided to write a backup utility for local git repositories.
The result is on GitHub.
I would like this application to be well-behaved with an ...
3
votes
3answers
259 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
461 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
133 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 ...