cloned a github repo, created a new branch -> can I push?
So I cloned a repo on github locally.
I didn’t have any rights on that repo yet.
Then I created a new branch locally.
I’d like to push my new branch to github,
I now also should be listed as collaborator.
Can I do this?
How do I do it?
I am used to command line git and this project
is running inside eclipse (android project).
One Solution collect form web for “cloned a github repo, created a new branch -> can I push?”
Not good idea, really.
Usual workflow looks like this
- You should
forkrepo to your account in github web-interface.
cloneyou fork to local machine.
- Make new
branch(call it by feature you want to implement or fixes you want to do).
- Change code,
pushnew branch to your fork.
pull requestto original repo.
Something like this.
EDIT: links by @zerkms in first comment are very useful. I think it will be more informative to read them, than my answer.