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.

  • Code are missing on Github
  • How much of a git sha is *generally* considered necessary to uniquely identify a change in a given codebase?
  • Git editor error
  • What are .rej files which are created during merge
  • Jenkins with multiple projects and git branches
  • Git hook script fails but script runs fine in terminal
  • 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).


  • Clone Git Repo With PHP
  • A more inteligent conflict solver on git
  • Repository and User Access for git using gitolite
  • How to go back to latest remote commit git
  • In Mercurial, when Peter “hg clone” me, and I commit and he pull and update, he gets my version, but not when I rollback?
  • How to handle/fix git add/add conflicts?
  • 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

    1. You should fork repo to your account in github web-interface.
    2. clone you fork to local machine.
    3. Make new branch (call it by feature you want to implement or fixes you want to do).
    4. Change code, commit it and push new branch to your fork.
    5. Create pull request to 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.

    Git Baby is a git and github fan, let's start git clone.