Skip to content

Instantly share code, notes, and snippets.

View gaspo53's full-sized avatar

Gaspar Rajoy gaspo53

  • La Plata, Buenos Aires, Argentina
  • 01:34 (UTC -03:00)
View GitHub Profile
@stefanbuck
stefanbuck / prepare-commit-msg
Last active April 15, 2025 09:45
Ticket number git hook
#!/usr/bin/env bash
#
# Authors:
# Stefan Buck (https://github.com/stefanbuck)
# Thomas Ruoff (https://github.com/tomru)
#
#
# Description:
# Are you still prefixing your commits with a ticket number manually? You will love this script!
# This is a git hook script that will automatically prefix your commit messages with a ticket
@robmiller
robmiller / .gitconfig
Created July 17, 2013 07:52
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"