Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#40680] Documentation on how to use git inside of OP concerning the docs

as-opa4ae329c569f
diff --git a/docs/development/contribution-documentation/documentation-process/README.md b/docs/development/contribution-documentation/documentation-process/README.md
index 85449774499..0e764d95445 100644
--- a/docs/development/contribution-documentation/documentation-process/README.md
+++ b/docs/development/contribution-documentation/documentation-process/README.md
@@ -74,7 +74,23 @@ Select `release/12.1` as default branch and confirm with **Update**
![switch-the-default-branch-step-2](switch-the-default-branch-step-2.png)
-## Step 8: Clone the forked OpenProject repository in GitHub Desktop
+## Step 8: Fetch origin with upstream changes (update local repository)
+
+Every time you start editing please make sure you have fetched the latest changes from GitHub.com. First you need to update your forked repository. There you select the branch you are working on, e.g. `release/12.1`. If there are updates in the main repository opf/openproject click on **Fetch upstream**.
+
+![fetch upstream changes](fetch-upstream-changes.png)
+
+Now you have fetched the latest changes from the main repository.
+
+You have to fetch those changes in GitHub Desktop by clicking **Fetch origin** in the main toolbar at the right. It is mandatory to be on the latest release branch (eg. `release/12.1`), it does not work if you are in any other branch.
+
+![fetch origin in github desktop](fetch-origin-in-github-desktop.png)
+
+Afterwards you also have to press **"Pull Upstream"**. Afterwards your local repository is updated to the latest commits of eg. opf/openproject/release/12.1
+
+![pull-upstream-changes](pull-upstream-changes.png)
+
+## Step 9: Clone the forked OpenProject repository in GitHub Desktop
Before you can make changes you need to create a local clone of the OpenProject repository on your local computer. Open GitHub Desktop and navigate to "File -> Clone repository".
@@ -82,15 +98,15 @@ Before you can make changes you need to create a local clone of the OpenProject
-In the modal window select the repository you forked in step 5. Also select a folder on your computer for the cloned repository. Click **Clone**.
+In the modal window select the repository you forked in step *Fork the OpenProject repository*. Also select a folder on your computer for the cloned repository. Click **Clone**.
![select repository to be cloned](select-repository-to-be-cloned.png)
-In the next screen select **To contribute to the parent project** and confirm with **Continue**.
+In the next screen select **To contribute to the parent project**.
![define how to use the fork](define-how-to-use-the-fork.png)
-## Step 9: Create a new Git branch for your change
+## Step 10: Create a new Git branch for your change
Select the latest release branch e.g. `release/12.1` as the current branch.
@@ -100,21 +116,11 @@ In the same drop down click on "New branch". In this window **insert a branch na
![create new branch - step 2](create-new-branch-step-2.png)
-## Step 10: Fetch origin with upstream changes (update local repository)
-
-Every time you start editing please make sure you have fetched the latest changes from GitHub.com. First you need to update your forked repository. There you select the branch you are working on, e.g. `release/12.1`. If there are updates in the main repository opf/openproject click on **Fetch upstream**.
-
-![fetch upstream changes](fetch-upstream-changes.png)
-
-Now you have fetched the latest changes from the main repository. Now you can fetch those changes in GitHub Desktop by clicking **Fetch origin** in the main toolbar:
-
-![fetch origin in github desktop](fetch-origin-in-github-desktop.png)
-
## Step 11: Open the files you want to change in Typora
-In Typora open the files you want to change (File -> Open). In the file picker navigate to the local folder you selected in the step 8.
+In Typora open the files you want to change (File -> Open). In the file picker navigate to the local folder you selected in the step *Clone the forked OpenProject repository in GitHub Desktop*.
## Step 12: Make the changes in Typora and save the file
@@ -146,17 +152,15 @@ Here select the latest release branch e.g. `release/12.1` in the **"base:"** dro
![create pull request](create-pull-request.png)
-In the description field of the pull request enter a summary for the changes you made. If there is already a work package on https://community.openproject.org you can also add this to the description. This adds a relation between your pull request and the work package.
-
In the description field of the pull request enter a summary for the changes you made. If there is already a work package on https://community.openproject.org you can also add this to the description with its complete URL. This adds a relation between your pull request and the work package.
## Step 16: Request review
-Select the label "documentation".
+Select the label "documentation".
![add documentation label for pull request](add-documentation-label-pull-requests.png)
-In the field "Reviewers" select "opf/doc-writers".
+In the field "Reviewers" select "opf/doc-writers".
![select reviewer for documentation](select-reviewer-for-documentation.png)
@@ -170,7 +174,7 @@ In the field "Reviewers" select "opf/doc-writers".
*(e.g. Release changes from `release/12.0` to `release 12.1`)*
-If a new release branch is generated on the upstream (opf) repository, the fork will NOT automatically fetch and merge and generate this release branch. With the following 'workaround' we get the new branch from the upstream (opf) repository and push it to our new origin (forked repository).
+If a new release branch is generated on the upstream (opf) repository, the fork will NOT automatically fetch and merge and generate this release branch. With the following 'workaround' we get the new branch from the upstream (opf) repository and push it to our new origin (forked repository).
#### A) Change Remote Repository to UPSTREAM
@@ -180,7 +184,7 @@ In GitHub Desktop choose menu "Repository -> Repository settings". This will ope
#### B) Fetch origin (in this case repository 'opf')
-In GitHub Desktop **at Current branch select the new branch** (e.g. `origin/release/12.1` and press **Fetch Upstream [2]**
+In GitHub Desktop **at Current branch select the new branch [1]** (e.g. `origin/release/12.1` and press **Fetch Upstream [2]**
![rebase-your-fork-step-2](rebase-your-fork-step-2.png)
diff --git a/docs/development/contribution-documentation/documentation-process/fetch-upstream-changes.png b/docs/development/contribution-documentation/documentation-process/fetch-upstream-changes.png
index 6bbf6eb1909..7645a37c992 100644
Binary files a/docs/development/contribution-documentation/documentation-process/fetch-upstream-changes.png and b/docs/development/contribution-documentation/documentation-process/fetch-upstream-changes.png differ
diff --git a/docs/development/contribution-documentation/documentation-process/pull-upstream-changes.png b/docs/development/contribution-documentation/documentation-process/pull-upstream-changes.png
new file mode 100644
index 00000000000..9f31776b2c4
Binary files /dev/null and b/docs/development/contribution-documentation/documentation-process/pull-upstream-changes.png differ