Skip to content

Commit e4bcf17

Browse files
committed
markdown source builds
Auto-generated via `{sandpaper}` Source : f3af3ed Branch : main Author : Dimitrios Theodorakis <[email protected]> Time : 2025-01-10 10:46:28 +0000 Message : MetOffice#43 Adds in a section in 7 conflicts on comparing diffs across branches via GitHub
1 parent 3d28c24 commit e4bcf17

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

06-conflict.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,26 @@ The far left shows how long ago the commit was that changed those lines.
168168
Then the commit message is displayed before the file contents.
169169
Click on the little page icon after a commit message to see previous
170170
commits which altered the same lines.
171+
Try using blame on the `CITATION.cff` file to see who added
172+
the conflicting change.
171173

174+
### Compare changes
175+
176+
In the git-novice lesson we learnt how to diff between commits
177+
on the same branch.
178+
You can also look at diffs between branches even if they are on
179+
a different fork using GitHub.
180+
181+
To see a difference for a repository add `/compare`
182+
to the end of the repository url.
183+
184+
1. Navigate to: [`https://github.com/MetOffice/git-training-demo/compare/`](https://github.com/MetOffice/git-training-demo/compare/),
185+
and click on the **compare across forks** link.
186+
2. Click on the **head repository** dropdown and find your fork.
187+
3. Click on the **compare** dropdown and select your feature branch.
188+
189+
A diff should appear comparing your fork's feature branch with
190+
the upstream repositories `main` branch.
172191

173192
## Resolving Conflicts
174193

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"episodes/04-review.md" "90bf3c25ead2368b8664603c6667a457" "site/built/04-review.md" "2025-01-09"
1111
"episodes/Break.md" "96f3c03ec9cd646c6366f840b7f21107" "site/built/Break.md" "2025-01-09"
1212
"episodes/05-forks.md" "47b583e34640bfbf92abb84c2c97540c" "site/built/05-forks.md" "2025-01-09"
13-
"episodes/06-conflict.md" "a3c16b18c944396e7edc87775f30d583" "site/built/06-conflict.md" "2025-01-09"
13+
"episodes/06-conflict.md" "168a9bc9aca94e053dcca42cfaef2953" "site/built/06-conflict.md" "2025-01-10"
1414
"episodes/07-history.md" "06de9dc87212934f2d7fc6ea7bbd97b2" "site/built/07-history.md" "2025-01-09"
1515
"episodes/End.md" "42f2019c55b38db5ec0eab909b6bca4d" "site/built/End.md" "2025-01-09"
1616
"episodes/08-rebase.md" "7e00861bac4464ebf12cfac75109cdd6" "site/built/08-rebase.md" "2025-01-09"

0 commit comments

Comments
 (0)