File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,26 @@ The far left shows how long ago the commit was that changed those lines.
168
168
Then the commit message is displayed before the file contents.
169
169
Click on the little page icon after a commit message to see previous
170
170
commits which altered the same lines.
171
+ Try using blame on the ` CITATION.cff ` file to see who added
172
+ the conflicting change.
171
173
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.
172
191
173
192
## Resolving Conflicts
174
193
Original file line number Diff line number Diff line change 10
10
"episodes/04-review.md" "90bf3c25ead2368b8664603c6667a457" "site/built/04-review.md" "2025-01-09"
11
11
"episodes/Break.md" "96f3c03ec9cd646c6366f840b7f21107" "site/built/Break.md" "2025-01-09"
12
12
"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 "
14
14
"episodes/07-history.md" "06de9dc87212934f2d7fc6ea7bbd97b2" "site/built/07-history.md" "2025-01-09"
15
15
"episodes/End.md" "42f2019c55b38db5ec0eab909b6bca4d" "site/built/End.md" "2025-01-09"
16
16
"episodes/08-rebase.md" "7e00861bac4464ebf12cfac75109cdd6" "site/built/08-rebase.md" "2025-01-09"
You can’t perform that action at this time.
0 commit comments