Juanjo Conti
Juanjo Conti

Reputation: 30073

I've git clone, now what?

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

?

Upvotes: 1

Views: 527

Answers (5)

Boldewyn
Boldewyn

Reputation: 82814

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.

Upvotes: 4

ZeissS
ZeissS

Reputation: 12135

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

Upvotes: 1

Dmitriy Likhten
Dmitriy Likhten

Reputation: 5216

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.

Upvotes: 0

hellvinz
hellvinz

Reputation: 3500

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

Upvotes: 1

kervin
kervin

Reputation: 11858

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.

Upvotes: 0

Related Questions