Skip to content

Instantly share code, notes, and snippets.

@peccu
Last active October 6, 2023 03:41
Show Gist options
  • Save peccu/d399389faa145b13e78815f14d5d6583 to your computer and use it in GitHub Desktop.
Save peccu/d399389faa145b13e78815f14d5d6583 to your computer and use it in GitHub Desktop.
`git add -p` and `git flow` for CoreOS using docker

Usage

put g and git-flow into $PATH and chmod +x them.

git add -p

g is git using docker.

$ g add -p

git flow

git flow executes git-flow.

$ git flow
usage: git flow <subcommand>

Available subcommands are:
   init      Initialize a new git repo with support for the branching model.
   feature   Manage your feature branches.
   release   Manage your release branches.
   hotfix    Manage your hotfix branches.
   support   Manage your support branches.
   version   Shows version information.

Try 'git flow <subcommand> help' for details.
docker run -ti \
-u $UID \
--rm \
-v ${HOME}:/home/$USER \
-v $(pwd):/git \
-v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \
-e "HOME=/home/$USER" \
-e "COLUMNS=$(tput cols)" \
-e "LINES=$(tput lines)" \
carver/docker-git "$@"
docker run -ti \
-u $UID \
--rm \
-v ${HOME}:/home/$USER \
-v $(pwd):/repo \
-v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt \
-e "HOME=/home/$USER" \
-e "COLUMNS=$(tput cols)" \
-e "LINES=$(tput lines)" \
mhoush/git-flow "$@"
@ganoobi
Copy link

ganoobi commented Oct 6, 2023

q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment