Suppose you always start from the same base app. This base app is maintained in a repo called "freshstart". Every project you start, you want it to start with the "freshstart" base app.
You also want you project to be linked to "freshstart", so that every time it is updated, your new project gets the updates to it's base app as well.
curl -u 'stevefloat:PASS' https://api.github.com/user/repos -d '{"name":"new-proj"}'
curl -u 'stevefloat:PASS' https://api.github.com/user/repos -d '{"name":"new-proj"}'
cd ~/git
git init new-proj
cd new-proj
git remote add origin https://github.com/stevefloat/new-proj
git remote add base https://github.com/stevefloat/freshstart
git add .
git commit -a -m "setup"
git pull --rebase base master
git push origin master
git config --global core.mergeoptions --no-edit
git remote -v show
git remote update
-
git pull --rebase Used to prevent the prompt for a commit message when merging using git pull, and also apparently makes a more readable commit history.
-
curl command for creating new repo so that you can init a new repo from CLI
-
solution to suppressing git-merge commit message prompt that I wasn't able to get working. I ended up using the
git pull --rebase <repo> <branch>
command to suppress the prompt, although there might be other implications that are messing with my commits & pushes that I haven't figured out yet. -
more info on --rebase that could be helpful.
See TODO.md to see a stream-of-conciousness log of how this came about.
- Prolific Like tumblr meets wordpress for art school kids.
- Shopaholic An e-commerce app framework utilizing stripe API