Skip to content

Instantly share code, notes, and snippets.

@mhupman
Created June 13, 2013 04:17
Show Gist options
  • Save mhupman/5771198 to your computer and use it in GitHub Desktop.
Save mhupman/5771198 to your computer and use it in GitHub Desktop.
# One-liner to check if repo directory exists. If so, attempt to enter and `git pull`. Otherwise, `git clone`
if [ -d citrrusbuilder ]; then cd citrrusbuilder && git pull && cd ..; else git clone git@bitbucket.org:citrrus/citrrusbuilder.git citrrusbuilder; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment