How to push to forked repository ?

3 views
Skip to first unread message

yando

unread,
Dec 20, 2008, 12:28:39 AM12/20/08
to chaw
I forked cakebook project, and I tried to push change to repository.
I guess something wrong in my operation.

1, the public key generated and registered to chaw already.
2, fork repositry on thechaw.com
3, clone repository like as bellow (copy from browser)
git clone g...@thechaw.com:forks/yandod/cakebook.git
# I wonder I shouldn't specify my account name ?
4, add new file in local filesystem
5, add to cloned repository like as:
svn add foo
6, commit to local repository like as:
svn commit
7, push to thechaw.com repository like as:
$ git push
Counting objects: 8, done.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (6/6), 4.85 KiB, done.
Total 6 (delta 2), reused 0 (delta 0)
Error: Authorization failed
error: hooks/pre-receive exited with error code 1
To g...@thechaw.com:forks/yandod/cakebook.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'g...@thechaw.com:forks/yandod/
cakebook.git'


I have 3 surppose case:

a, my publickey didn't register successful.
b, my operation was wrong.
c, we couldn't push to thechaw.com

pardon my stupid question.
please make correct me.

Gwoo

unread,
Dec 20, 2008, 12:08:45 PM12/20/08
to chaw
First thing is to check your git config. Make sure your username and
email match the information that is on your chaw account.

[~]$ git config --global user.name "yandod"
[~]$ git config --global user.email yandod@...


If you can join #chaw on irc we could work through the issue.

yando

unread,
Dec 20, 2008, 6:18:21 PM12/20/08
to chaw
gwoo,

thanks for your help.
I didn't set name and email to git config.
after did that, I pushed to repository successfully.
Reply all
Reply to author
Forward
0 new messages