Skip to content

Instantly share code, notes, and snippets.

@sh1mmer
Created November 1, 2011 22:49
Show Gist options
  • Save sh1mmer/1332195 to your computer and use it in GitHub Desktop.
Save sh1mmer/1332195 to your computer and use it in GitHub Desktop.
#just list all of the urls you want to push to under the remote header
[remote "all"]
[email protected]:repo
[email protected]:repo
#
# example
#
[remote "dev"]
[email protected]:repo
[remote "test"]
[email protected]:repo
[email protected]:repo
[email protected]:repo
[email protected]:repo
[remote "prod"]
[email protected]:repo
[email protected]:repo
[email protected]:repo
[email protected]:repo
#
# you can now do `git push dev master` `git push test master` `git push prod master`
# to push at various envs you have
{
"name": "my-app",
"version": "1.0.0",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"express":">2.0.0"
}
}
/*
* Remember you can get a lot more info on package.json from:
* `npm help json`
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment