Created
January 18, 2017 15:40
-
-
Save parisk/0cda8f7ddce554d802b9ac749bf89ab4 to your computer and use it in GitHub Desktop.
Install gitflow on SourceLair
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
# 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