Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 526 Bytes

readme.md

File metadata and controls

21 lines (15 loc) · 526 Bytes

To clone this repo all the branches at once, run the following commands:

Clone it.

git clone git@github.com:CodeCoreYVR/git_workflow_demo.git
cd git_workflow_demo

Run some 🔮 script to create local copies of all branches. Credit due

git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | bash -xfs

Delete the .git directory.

rm -rf .git