-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STW: use development config in Makefile, documentation
- Loading branch information
Showing
5 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[params] | ||
preview_message = "Local Dev" | ||
#preview_url = "https://github.com/htw-imi-showtime/showtime-website/pull/101" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,12 +38,34 @@ We are using the Forking Workflow that is common to contribute to open source re | |
|
||
1. update clone | ||
|
||
Recommended: keep your main branch in sync with upstream/main. Do not change it directly. | ||
|
||
a. Setup: | ||
```bash | ||
git remote add upstream [email protected]:htw-imi-showtime/showtime-website.git | ||
git fetch upstream main | ||
``` | ||
b. Update (do often ) | ||
|
||
```bash | ||
git checkout main | ||
git pull upstream main | ||
git submodule update | ||
git checkout <your-current-branch> | ||
git merge main | ||
``` | ||
|
||
if you want to merge upstream/main directly, without updating main: | ||
|
||
```bash | ||
git remote add upstream [email protected]:htw-imi-showtime/showtime-website.git | ||
git fetch upstream main | ||
git merge --no-ff upstream/main | ||
git merge upstream/main | ||
git submodule update | ||
``` | ||
|
||
|
||
|
||
Check message for possible merge conflicts; resolve merge conflicts. | ||
As you should not change any files other than in your project repo, | ||
these should be the only ones. | ||
|
@@ -55,7 +77,12 @@ then `git push` your changes. | |
## update theme | ||
or: **OMG! there are changes in themes/showtime-theme-2021** and **this was not me!!** | ||
|
||
tl;dr: run `git submodule update`` | ||
### tl;dr: run `git submodule update`` | ||
|
||
```bash | ||
git submodule update | ||
``` | ||
### More text | ||
|
||
After the successful merge, git status may still show changes in a submodule: | ||
(the same may be the case for the project-archive submodule if you checked it out) | ||
|
@@ -83,3 +110,15 @@ than the one that was included in upstream/main - run this to check it: | |
run `git submodule update` to resolve this. | ||
|
||
|
||
## Git submodules are not rocket science | ||
|
||
there's simply a .gitmodules file that list the submodules: | ||
```bash | ||
cat .gitmodules | ||
``` | ||
|
||
|
||
[submodule "themes/showtime-theme-2021"] | ||
path = themes/showtime-theme-2021 | ||
url = ../../htw-imi-showtime/showtime-theme-2021.git | ||
branch = main |