1
Fork 0
config/git/scripts/git-track

6 lines
160 B
Bash
Executable File

#!/bin/sh
[ $1 ] || exit 1
branch=$(git symbolic-ref --short HEAD)
git config branch.$branch.remote $1
git config branch.$branch.merge refs/heads/${2:-$branch}