Skip to content

Instantly share code, notes, and snippets.

@karmi
Created December 4, 2008 13:50
Show Gist options
  • Select an option

  • Save karmi/31943 to your computer and use it in GitHub Desktop.

Select an option

Save karmi/31943 to your computer and use it in GitHub Desktop.
>> Dir.pwd
=> "/Users/karmi/Playground/Ruby/Pushr/Application/shared/cached-copy"
>>
>> `git status`
=> "# On branch master\nnothing to commit (working directory clean)\n"
>>
>> `git fetch -q nonexistent 2>&1`
fatal: 'nonexistent': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly
=> ""
>> $?.success?
=> false
>>
>> `git fetch -q origin 2>&1`
=> ""
>> $?.success?
=> true
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment