Skip to content

Instantly share code, notes, and snippets.

@Oblongmana
Created October 24, 2013 22:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Oblongmana/7145945 to your computer and use it in GitHub Desktop.
Save Oblongmana/7145945 to your computer and use it in GitHub Desktop.
This alias initialises a git repo with a Salesforce specific setup , with gitignore configured to exclude SublimeText project nature, OSX, and MavensMate nature files - which will be individual specific - not good in a distributed setup!.This alias should be added to your [alias] section in ~/.gitconfig, Once you've done that, you can invoke "gi…
[alias]
init-sf = "!workingdir=$(pwd); tempdir=$(mktemp -dt gitinitsftmp); (cd $tempdir && git init && curl -o .gitignore https://gist.github.com/Oblongmana/7130387/raw/69aa9b661b0bd7300eff8648c65362c7f711f725/.gitignore-sf && mkdir -p apex-scripts && mkdir -p src/classes && touch README.md && cp -R $tempdir/. $workingdir); rm -rf $tempdir;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment