Skip to content

Instantly share code, notes, and snippets.

@goneri
Created June 28, 2019 19:31
Show Gist options
  • Save goneri/f71f38dc79878560233cc22d0b0cf2a6 to your computer and use it in GitHub Desktop.
Save goneri/f71f38dc79878560233cc22d0b0cf2a6 to your computer and use it in GitHub Desktop.
Prepare a dev work env for Ansible
#/usr/bin/fish
set github_account "goneri"
#git clone [email protected]:ansible/ansible upstream
for i in a b c
set -x GIT_DIR $i/.git
git clone --shared --origin upstream upstream $i
git remote add goneri [email protected]:{goneri}/ansible.git
git remote add origin https://github.com/ansible/ansible
end
set -x GIT_DIR upstream/.git
git remote add a ../a
git remote add b ../b
git remote add c ../d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment