Skip to content

Instantly share code, notes, and snippets.

@parisk
Created January 18, 2017 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parisk/0cda8f7ddce554d802b9ac749bf89ab4 to your computer and use it in GitHub Desktop.
Save parisk/0cda8f7ddce554d802b9ac749bf89ab4 to your computer and use it in GitHub Desktop.
Install gitflow on SourceLair
# Install `git-flow` on Sourcelair by just copying and pasting the
# following lines in your terminal.
# Lines preceded by "#" are comments and are not executed.
# Update the PATH environment variable to include `/mnt/user/.bin`
# in order to locate `git-flow` successfully.
export GIT_GLOW_INSTALLATION_DIR=/mnt/user/.bin
export PATH=$GIT_GLOW_INSTALLATION_DIR:$PATH
echo "export PATH=$GIT_GLOW_INSTALLATION_DIR:$PATH" >> /mnt/user/.bashrc
# Create the installation dir of `git-flow` if it does not exist.
mkdir -p $GIT_GLOW_INSTALLATION_DIR
# Download the `git-flow` installer and make it an executable file
wget https://raw.github.com/nvie/gitflow/develop/contrib/gitflow-installer.sh -O /mnt/user/gitflow-installer.sh
chmod +x /mnt/user/gitflow-installer.sh
# Install `git-flow`in the installation dir of `git-flow`
INSTALL_PREFIX=$GIT_GLOW_INSTALLATION_DIR /mnt/user/gitflow-installer.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment