Last Updated: February 25, 2016
· destructuring

Describe your git projects, automate setup

A git clone is just step 1 for setting up my work area. I have submodules to recursively update, remotes to setup (so I can merge upstream updates).

I keep a config/project.yml file that describes my remotes:


Then a git-setup script in my $PATH that will recursively apply "git setup" to git submodules and set up remotes. Combine that with a custom "git update" to git fetch, pull, --tags.

I'm considering how to execute a bin/setup for each submodule, but haven't worked out the trust issues. That way "git setup" can bundle, npm, git remote prune. Instead of a bin/setup in external projects, a git-setup-xxx plugin can be applied to all of them, so I'd have git-setup-bundler, git-setup-deploy.

2 Responses
Add your response

Cool idea, are you able to share the setup script?

over 1 year ago ·

I haven't added it to my "paul" project (loosely, github hub + git flow + all my git scripts) yet since it's full of hard coded work strings. I'll let you know when it's added to paul as "git setup".

over 1 year ago ·