Skip to content

Instantly share code, notes, and snippets.

@metaperl
Created August 25, 2009 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metaperl/174885 to your computer and use it in GitHub Desktop.
Save metaperl/174885 to your computer and use it in GitHub Desktop.
[tbrannon@devel Number-Closest]$ ls
blib Changes lib Makefile Makefile.PL MANIFEST pm_to_blib README t
[tbrannon@devel Number-Closest]$ git config --add github.user metaperl
error: could not lock config file .git/config
[tbrannon@devel Number-Closest]$ git init
Initialized empty Git repository in /home/tbrannon/prg/Number-Closest/.git/
[tbrannon@devel Number-Closest]$ git config --add github.user metaperl
[tbrannon@devel Number-Closest]$ git config --add github.token 7ec1d7b3fce2c519154df99b6599b303
[tbrannon@devel Number-Closest]$ git config --add github-import.remote origin
[tbrannon@devel Number-Closest]$ github-import
bash: github-import: command not found
[tbrannon@devel Number-Closest]$ github-import
Adding project to github
Project added OK: http://github.com/metaperl/number-closest
Adding remote "origin" to existing working copy
Remote added
Pushing existing master to github
error: src refspec master does not match any.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'git@github.com:metaperl/number-closest.git'
push --tags origin master: command returned error: 1
[tbrannon@devel Number-Closest]$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .gitignore
# Changes
# MANIFEST
# Makefile.PL
# README
# lib/
# t/
nothing added to commit but untracked files present (use "git add" to track)
[tbrannon@devel Number-Closest]$ git add .
[tbrannon@devel Number-Closest]$ git commit -a -m 'first commit'
[master (root-commit)]: created 4e2e3d9: "first commit"
12 files changed, 494 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 Changes
create mode 100644 MANIFEST
create mode 100644 Makefile.PL
create mode 100644 README
create mode 100644 lib/Number/Closest.pm
create mode 100644 lib/Number/Closest.pm~
create mode 100644 t/00-load.t
create mode 100644 t/01-closest.t
create mode 100644 t/01-closest.t~
create mode 100644 t/boilerplate.t
create mode 100644 t/pod.t
[tbrannon@devel Number-Closest]$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'git@github.com:metaperl/number-closest.git'
[tbrannon@devel Number-Closest]$ git push master
fatal: 'master': unable to chdir or not a git archive
fatal: The remote end hung up unexpectedly
[tbrannon@devel Number-Closest]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment