Skip to content

Instantly share code, notes, and snippets.

View aigitia's full-sized avatar

Armen Igitian aigitia

View GitHub Profile
@jussi-kalliokoski
jussi-kalliokoski / git-pick-file.sh
Last active July 11, 2022 10:08
Cherry-picks commits from master that have changes to specified files.
$!/usr/bin/env sh
branch=`git symbolic-ref --short HEAD`
git checkout master
commits=`git log --pretty="%H" --reverse -- $*`
git checkout $branch
for commit in $commits; do
git cherry-pick $commit
done