Skip to content

Instantly share code, notes, and snippets.

@ideadapt
Last active December 18, 2015 14:18
Show Gist options
  • Save ideadapt/5795704 to your computer and use it in GitHub Desktop.
Save ideadapt/5795704 to your computer and use it in GitHub Desktop.
capistrano deploy:update_code git error
# sometims capistranos fails executing update_code goal:
* 2013-06-17 08:08:34 executing `deploy:update_code'
executing locally: "git ls-remote . HEAD"
command finished in 9ms
* refreshing local cache to revision f4db at /var/folders/nc/pl0c_dnd43bb6xl5ljdfh5zh0012gn/T/proj
executing locally: cd /var/folders/nc/pl0c_dnd43bb6xl5ljdfh5zh0012gn/T/proj && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard f4db8ab10f23ddd2864ebfeee7486bdf3bd8e423 && git clean -q -d -x -f
fatal: Not a git repository (or any of the parent directories): .git
# to reset your local cache folder execute following commands:
rm -rf /var/folders/*
reopen bash
@josecoelho
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment