How to clone a repository with GitHub client that I can push into?

Apology in advance if what I’m asking doesn’t make any sense: I’m completely green when it comes to Git. First project I’m putting on GitHub. The software in question is multi-platform. A single feature change typically involves working in several different environments (hosted in virtual machines on my Windows workstation, with the exception of OSX for which I use my Macbook). Right now with SVN, I’ve been just committing changes for each OS as I made them. That’s clearly not a good way to do things since that means checking stuff into the repository that’ll break elsewhere. So what I want to do is to have a local repository where I can push everything into from the various environments before a final push up to GitHub. When I tried to push changes into the local repository set up by the GitHub Windows client though, Git complained about not being able to push into a non-bare repository. I didn’t find an option for cloning a repository as bare.

  • How to push to both GitHub and live server from local repository?
  • Github pull request issue
  • I pushed gemfile and gemfile.lock to my branch, do I have to merge to master?
  • Git, how to commit only a specific directory?
  • How Does GitHub Merge Web-Based Wiki Edits With Ones Through The Repository?
  • jekyll server on but not regenerating
  • How can I hide the “pr” remote branches?
  • Updating Git to official distribution on MacBook Pro Sierra
  • One Solution collect form web for “How to clone a repository with GitHub client that I can push into?”

    If I understood correctly, you can use branches. You could have your main branch, or as you call it, your ‘github’ repository and then one branch for each platform, and then every feature you want to work on, is a new branch of the platform-branch, if you want the SAME feature-branch on every platform-branch, then you can rebase the feature-branch to the platform-branch.

    Other option is to have different remote repositories.

    Another way to go is forking the master project, one fork for each platform.
    It may be cleaner to you, you can even merge your fork into master.

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