For the complete documentation index, see llms.txt. This page is also available as Markdown.

Share with Git and GitHub

Note: These Git features are currently only available in the v6.0 beta and not in the current standard download at the JabRef home page. To access them, download the v6.0 beta version of JabRef or build from source.

JabRef allows you to use Git and GitHub to share entries with others. You can also use these features for version control and collaboration.

Setting up GitHub sharing

To set up sharing with Git, first ensure that the bibliography file is correctly saved. Then follow these steps:

  1. Create a remote GitHub Repository: To begin, create a GitHub repository to store your entries remotely. You will need a GitHub account for this step - see Creating a GitHub Repository.

  2. Create a Personal Access Token (PAT): To create a Personal Access Token for your GitHub account, follow the steps at: Creating a GitHub PAT. When prompted on what accesses the token should have, select the 'repo' permission. Make sure to copy the token or save it somewhere, as required for step 3.

  3. Add your Git credentials: Add your GitHub credentials into JabRef by visiting File -> Preferences and searching for 'Git'. You should see boxes to place both your username and the PAT you made in step 2. Come back here to change your credentials at any time.

  4. Share the repository to GitHub: Choose File → Git -> Share this library to GitHub. Enter the GitHub repository URL from step 1. This will initialise a local Git repository, add the repository from step 1 as a remote, and push your entries to the remote repository.

Using Git Features

Once you share your library to GitHub, you will be able to use Git features from the File → Git menu:

  • Commit: Records the latest version of your bibliography file in your local repository.

  • Push: Updates the remote repository with the newest version of your local commits. There must be no conflicts with the content of the remote repository. If there are conflicts, consider pulling first.

  • Pull: Pulls the latest changes from the remote repositories and performs a semantic merge. If there are conflicts (such as conflicting changes between you and a collaborator), it will open a conflict menu where you can merge your changes together.

For more information on how these commands work, see the Git documentation.

Note that this procedure automatically shares all files in the libraries directory of your project. Because of this we recommend to check that folder does not contain unrelated files, or to use a .gitignore file to exclude files, before sharing.

Last updated

Was this helpful?