Skip to content

Instantly share code, notes, and snippets.

@dbryson
Created October 28, 2008 20:26
Show Gist options
  • Save dbryson/20507 to your computer and use it in GitHub Desktop.
Save dbryson/20507 to your computer and use it in GitHub Desktop.
$ mkdir example
$ cd example/
$ git init
Initialized empty Git repository in /home/mutex/code/example/.git/
$ echo "hi" > a
$ git add a
$ git commit -m "added a"
Created initial commit f11e70e: added a
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 a
$ echo "bye" > a
$ git stash save WIP
Saved working directory and index state "On master: WIP"
HEAD is now at f11e70e added a
$ cd ..
$ git clone example origin
Initialized empty Git repository in /home/mutex/code/origin/.git/
$ cd example
$ git remote add origin ../origin
$ git config remote.origin.mirror 1
$ git push origin
Counting objects: 6, done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 397 bytes, done.
Total 4 (delta 1), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
error: refusing to create funny ref 'refs/stash' remotely
To ../origin
- [deleted] origin/HEAD
- [deleted] origin/master
! [remote rejected] refs/stash -> refs/stash (funny refname)
error: failed to push some refs to '../origin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment