Skip to content

Commit

Permalink
Instructions to update bibliography
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Jun 24, 2024
1 parent 1291896 commit 4d9fb8d
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,46 @@ python3 -m pip install -r requirements.txt

### Bibliography

We use a single, shared BibTeX bibliography file for all papers in the teaching RSE project. This is imported as a Git submodule from [another repository](https://github.com/the-teachingRSE-project/bibliography). See the instructions in that repository if you need to add bibliography entries.
We use a single, shared BibTeX bibliography file for all papers in the teaching RSE project.
This is imported as a git submodule from [another repository](https://github.com/the-teachingRSE-project/bibliography).
See the instructions in that repository if you need to add bibliography entries.

When you first clone this repository, the bibtex folder is empty.
To download the bibliography, run the following commands:

```sh
git submodule update --init --recursive
git config --local submodule.recurse true
```

This will populate the folder with the contents of the remote bibliography repository.
To modify the bibliography, you need to clone
[the-teachingRSE-project/bibliography](https://github.com/the-teachingRSE-project/bibliography),
commit your changes and push them. Then you can synchronize the
local bibliography submodule by running the following commands:

```sh
git submodule update --remote bibliography
git add bibliography
git commit -m 'Synchronize bibliography'
```

If the remote bibliography repository is broken, you can roll back the bibliography version
in the submodule. For example to go back 4 commits in the past, run:

```sh
cd bibliography/
git reset HEAD~4
git checkout .
cd ..
git add bibliography/
git commit -m 'Roll back to an older version of the bibliography'
```

### How to create a pull request

- Fork this repository
- run
- If you clone your fork locally, run
```sh
git submodule update --init --recursive
git config --local submodule.recurse true
Expand Down

0 comments on commit 4d9fb8d

Please sign in to comment.