Skip to content

Instantly share code, notes, and snippets.

@khoan
Created July 26, 2014 13:02
Show Gist options
  • Save khoan/753927225c120739b3aa to your computer and use it in GitHub Desktop.
Save khoan/753927225c120739b3aa to your computer and use it in GitHub Desktop.
$ git remote -v
bam [email protected]:bam.git (push)
bam [email protected]:bam.git (fetch)
$ heroku repo:rebuild -r bam
Running `bash` attached to terminal... up, run.5637
set -e
mkdir -p tmp/repo_tmp/unpack
cd tmp/repo_tmp/unpack
git init --bare .
tar -zcf ../repack.tgz .
curl -o /dev/null --upload-file ../repack.tgz 'https://s3-external-1.amazonaws.com/heroku_repos/heroku.com/26808517.tgz?AWSAccessKeyId=AKIAJWLOWWHPBWQOPJZQ&Signature=Uyy0uacE46KciwCqN9xoijezXK0%3D&Expires=1406382758'
exit
~ $ set -e
~ $ mkdir -p tmp/repo_tmp/unpack
~ $ cd tmp/repo_tmp/unpack
~/tmp/repo_tmp/unpack $ git init --bare .
Initialized empty Git repository in /app/tmp/repo_tmp/unpack/
~/tmp/repo_tmp/unpack $ tar -zcf ../repack.tgz .
~/tmp/repo_tmp/unpack $ curl -o /dev/null --upload-file ../repack.tgz 'https://s3-external-1.amazonaws.com/heroku_repos/heroku.com/26808517.tgz?AWSAccessKeyId=AKIAJWLOWWHPBWQOPJZQ&Signature=Uyy0uacE46KciwCqN9xoijezXK0%3D&Expires=1406382758'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
101 5778 0 0 101 5778 0 45988 --:--:-- --:--:-- --:--:-- 60821
~/tmp/repo_tmp/unpack $ exit
exit
fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment