When submitting a pull request to RDF4J, we sometimes ask that you squash your commits before we merge. Here we explain a simple way to do that.
On the command line, the process is as follows:
- Make sure your local master and develop branches are up to date with the upstream.
- Check out your pull request branch.
git rebase -i master (or
git rebase -i develop if your PR is against the develop branch).
You should see a list of commits, each commit starting with the word
Make sure the first commit says “pick” and change the rest from “pick” to “squash”.
- Save and close the editor.
It will give you the opportunity to change the commit message.
- Save and close the editor again.
Then you have to force push the final, squashed commit:
git push --force-with-lease origin.
Eclipse rdf4j is a powerful Java framework for processing and handling RDF data. This includes creating, parsing, scalable storage, reasoning and querying with RDF and Linked Data. It offers an easy-to-use API that can be connected to all leading RDF database solutions. It allows you to connect with SPARQL endpoints and create applications that leverage the power of linked data and Semantic Web.