mkdir workspace
cd workspace
git clone https://github.com/nnutter/git-bd.git
cd
mkdir bin
cd bin
ln -s ~/workspace/git-bd/git-* .
cd
echo 'PATH=~/bin:$PATH' >> .bashrc
echo 'source ~/workspace/git-bd/bd.bashrc' >> .bashrc
source .bashrc
cd workspace/git-bd
git bd --init
# use the default master dir
# set the branch dir to /full/path/to/your/clone/dir/bd/
# that would be /home/gituser/workspace/git-bd/bd
# Sumit would rather have the bd dir outside his repo, so he'd use
# /home/gituser/workspace/git-bd_branch_dir
# and keep it in a parallel directory.
echo bd/ >> .gitignore
Last active
December 23, 2015 00:49
-
-
Save jakl/6556670 to your computer and use it in GitHub Desktop.
Git Branch with Smart Directories
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment