You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- NOTE: You can also use the native git client: `git clone --recurse-submodules https://github.com/JabRef/jabref.git jabref` for achieving the same result.
48
+
- NOTE: You can also use the native git client: `git clone --recurse-submodules https://github.com/JabRef/jabref.git` for achieving the same result.
45
49
- Make `gg.cmd` available in `jabref` source directory
46
50
-`cd jabref`
47
51
-`mv ../gg.cmd .`
48
52
49
53
Now you are all set: You have a directory `jabref` containing the recent updates and also `gg.cmd` which you will need later for executing a JabRef build.
50
54
55
+
Note: If you don't want to store JabRef's source code permanently, you can follow the steps at [our blog post on gg.cmd usage](https://blog.jabref.org/2025/05/31/run-pr/). There, JabRef's source is checked out in a temporary directory.
56
+
51
57
### Try a branch
52
58
53
59
1.`cd` into the `jabref` source directory: `cd c:\git-repositories\jabref`
54
-
2. Checkout the PR and run JabRef: `sh ./gg.cmd just run-pr xyz` - replace `xyz` with the PR number or the unique branch identifier by GitHub
60
+
2. Checkout the PR and run JabRef: `sh ./gg.cmd just run-pr <pr-number>` - replace `<pr-number>` with the PR number or the unique branch identifier by GitHub
55
61
56
62
- Example: `13182` for [pr#13182](https://github.com/JabRef/jabref/pull/13182).
57
63
- Example: `Yubo-Cao:walkthroug` for the branch identifier output by GitHub\
@@ -61,18 +67,20 @@ This will download the necessary JDK and a gradle distribution.
61
67
On the first run, please give the system enough time to accommodate and wait until the JabRef window launches.
62
68
Depending on your hardware, this may take a few minutes.
63
69
64
-
On Windows, instead of `sh ./gg.cmd` use `.\gg.cmd`.
70
+
On Windows, instead of `sh ./gg.cmd` use `.\gg.cmd`:
71
+
72
+
.\gg.cmd just run-pr <pr-number>
65
73
66
74
#### Alternatives
67
75
68
-
1. In case you don't want to use `gg.cmd`: You can install [JBang](https://www.jbang.dev/)and a [Java JDK](https://adoptium.net/de/temurin/releases/?os=any&arch=any&version=21)for yourself and execute the commands directly. These are
76
+
1. In case you don't want to use `gg.cmd`: You can install [JBang](https://www.jbang.dev/) for yourself and execute the commands directly. These are
- You have the project clone ready and have some Java JDK available: In the `jabref` directory, execute `./gradlew run`.
83
+
- You have the project clone ready and have some [Java JDK](https://adoptium.net/de/temurin/releases/?os=any&arch=any&version=21) available: In the `jabref` directory, execute `./gradlew run`.
76
84
- Install `gh` (the [GitHub CLI](https://cli.github.com/), a command-line client for GitHub) by using the installer linked on their [homepage](https://cli.github.com/) or the commands given at the [installation hints](https://github.com/cli/cli#installation).
77
85
78
86
3. In case you don't want to use `gh`: You can use the "usual" `git clone ...`, `git remote add ...`, `git fetch ...`, and `git checkout ...` commands to checkout a pull request from a fork.
0 commit comments