Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
course-material
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IT1901
course-material
Commits
97be354e
Commit
97be354e
authored
1 year ago
by
George Adrian Stoica
Browse files
Options
Downloads
Patches
Plain Diff
edit: update lecture 10 slides
parent
57d85eeb
No related branches found
No related tags found
No related merge requests found
Pipeline
#234422
passed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lectures/revealjs/10-git-branching.adoc
+14
-6
14 additions, 6 deletions
lectures/revealjs/10-git-branching.adoc
with
14 additions
and
6 deletions
lectures/revealjs/10-git-branching.adoc
+
14
−
6
View file @
97be354e
...
...
@@ -60,7 +60,7 @@ IT1901 Fall 2023 - {LECTURE_NO}
[background-color = "#124990"]
[color = "#fff6d5"]
==
Git Branching
==
Conflicts
== Conflicts (1)
...
...
@@ -70,19 +70,27 @@ IT1901 Fall 2023 - {LECTURE_NO}
== Conflicts (2) - Setup VSCode
- `git config merge.tool vimdiff`
- vscode as editor
** `git config --global core.editor 'code --wait --new-window'`
- vscode as diff tool
** `git config --global diff.tool vscode`
** `git config --global difftool.vscode.cmd 'code --wait --diff $LOCAL $REMOTE'`
== Conflicts (3) - Setup VSCode
- vscode as merge tool
** `git config --global merge.tool vscode`
** `git config --global mergetool.vscode.cmd 'code --wait $MERGED'`
- `git config merge.conflictstyle diff3`
- `git config mergetool.prompt false`
== Conflicts (
3
) - Solving
== Conflicts (
4
) - Solving
- `git mergetool`
-
`:wqa` save and exit from vi
-
solve the conflict in the editor
- `git commit -m "message"`
- `git clean` remove file (might remove other untracked files)
[background-color = "#124990"]
[color = "#fff6d5"]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment