tags:

views:

76

answers:

5

I've just cloned a repository, made some changes and now I'd like to send the author my patch. What should I do?

I cloned from github anonymously.

git push origin

?

A: 

You need to commit to your local repository, then you can push.

But that's not going to work probably since you aren't logged in.

kervin
So what do I do? I want my changes sent with minimal effort :)
Juanjo Conti
I have a github account but I wasn't logged in when cloning. Is this a problem?
Juanjo Conti
@Juanjo: Nope. Just clone the project again inside github (two clicks, if I remember correctly) and push your local changes to your github clone. Then ask the author to pull from your github clone.
Boldewyn
+1  A: 

You should first fork http://help.github.com/forking/ and then send a pull-request: http://github.com/guides/pull-requests

hellvinz
A: 

You need to commit to your local repository with git commit

Create a fork in git (see hellvinz's answer). Push your local commit to your personal fork. Then send a pull-request to the author.

Dmitriy Likhten
+4  A: 

If you have a github account, too, read this: http://github.com/guides/pull-requests

Elif the upstream author can access your repository via ssh, http or the git protocol, write an email, that he can pull from there: git pull http://example.com/cool_stuff.git

Else you should do git format-patch -o patchdir && tar c patchdir.tar patchdir and mail the patch to the upstream author.

Boldewyn
+1  A: 

minimal affort? git diff > file.patch and mail ;)

ZeissS