I have cloned someone's open source code hosted on github and made some changes to fix things on various platforms. I'd like to feed this back into the system. How do I contribute this into github so that others get the benefits?
If you want others to use, distribute, modify, or contribute back to your project, you need to include an open source license. For example, someone cannot legally use any part of your GitHub project in their code, even if it's public, unless you explicitly give them the right to do so.
You can clone or fork a repository with GitHub Desktop to create a local repository on your computer. You can create a local copy of any repository on GitHub that you have access to by cloning the repository. If you own a repository or have write permissions, you can sync between the local and remote locations.
If someone else takes the code but does not violate the license, that’s called forking and is perfectly legitimate, but a polite project will acknowledge the original project, for example “This is a fork of X, aimed to work on mobile devices i How can I check whether the source code of an open-source project contains no malicious content?
And don’t share your project to others before you upload it to Github. Your so-called friend could still claim it’s his project, but then you can prove it’s yours. You have the Git history to prove that you’re the person who did it. If he copied your code instead of making his own, he’s likely too stupid to know how to hide what he did.
If you fork a project in GitHub, do you become the copyright holder of the source code? Forking an open-source software project does not change the ownership of copyrights in the source code that was formed from the original project.
Using git am to Apply a Patch. The receiver of the patch file (s) can then apply the changes using the git am command: # Switch to the branch where the changes should be applied $ git checkout master # Apply the patch $ git am bugfix.patch # Check what has happened in the commit log $ git log.
I think you want to create a Pull Request.
UPDATE
If you don't have your fork on GitHub yet, then you have to create that first:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With