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.
- Github API for code comments
- How to remove files from the GitHub repository?
- delete existing code from github repo and push fresh code without deleting the github repo
- Git pull from my public repository not working
- What happens if you force push to a branch with an existing pull request?
- Why my bokeh plots doesn't work on github?
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.