$ git push origin :heads/gh-pages $ git push origin :tags/tag_name
"gh-pages" is the name of branch.
"tag_name" is the name of tag.
Sometimes you may find you cannot push, like this:
Created commit 36efffb: 201106021810 1 files changed, 1 insertions(+), 1 deletions(-) pushing... To git@github.com:librae8226/leafos.git ! [rejected] master -> master (non-fast forward) error: failed to push some refs to 'git@github.com:librae8226/leafos.git' Everything up-to-date
just do this first:
$ git pull
git archive master | bzip2 > source-tree.tar.bz2
git checkout FILE_NAME
git remote -v
http://www.myscienceisbetter.info/fix-gitk-ugly-fonts-in-ubuntu.html
git push origin +e57588059c4152c30d00520ca53dc1897a175780^:master