This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the function to the .zshrc and update your console environment | |
function git-mass-cherry-pick { | |
# The exact commit from which the cherry-picking will start. | |
readonly start=${1:?"Starting commit SHA must be specified."} | |
local branch_name=$(git rev-parse --abbrev-ref HEAD); | |
local bak_name="bak/${branch_name}" | |
# Remember commits to be cherry-picked | |
local commits_to_cherry_pick=() | |
for commit in $(git log $start^1.. --no-merges --reverse --pretty=%H --abbrev-commit); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set the base image to Debian | |
# https://hub.docker.com/_/debian/ | |
FROM debian:latest | |
# replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# update the repository sources list | |
# and install dependencies | |
RUN apt-get update \ |