Logo

dev-resources.site

for different kinds of informations.

Setting Visual Studio Code as your git merge and diff tool

Published at
9/6/2022
Categories
git
vscode
merge
diff
Author
leandrocrs
Categories
4 categories in total
git
open
vscode
open
merge
open
diff
open
Author
10 person written this
leandrocrs
open
Setting Visual Studio Code as your git merge and diff tool

Paste the following lines in your ~/.gitconfig file:

# This is Git's per-user configuration file.
[core]
    editor = code --wait
[diff]
    tool = default-difftool
[difftool "default-difftool"]
    cmd = code --wait --diff $LOCAL $REMOTE
[merge]
    tool = default-mergetool
[mergetool "default-mergetool"]
    cmd = code --wait $MERGED
Enter fullscreen mode Exit fullscreen mode

Done! Next time you do a git commit or whatever operation that needs a text editor, Visual Studio Code will be opened as your default editor.

merge Article's
30 articles in total
Favicon
Merge PDFs Recursively - Python
Favicon
Why I prefer rebase over merge (and everything else)
Favicon
Asynchronous Streams in Dart with RxDart
Favicon
A Guide to Understanding the Nuances of Git Merge and Rebase
Favicon
What Makes Ethereum the Most Profitable Software Company in 1st Quarter of 2024?
Favicon
How to Merge PDF Files in C# (Developer Tutorial)
Favicon
Git Merge vs. Rebase: Key Differences
Favicon
Navigating the Stormy Waters of Git Merge Conflicts: A Guide for basic git conflicts
Favicon
Merging data from multiple Excel files
Favicon
How to Manage Git Branches for Jira Tickets in IntelliJ IDEA
Favicon
GIT Merge Conflict
Favicon
[Java] Wie man mehrere Word-Dokumente zu einem Word-Dokument zusammenfรผhrt
Favicon
P4 merge in ubuntu
Favicon
Comment fusionner ou combiner des documents PDF avec Java
Favicon
How to Merge Multiple PDF files into a Single PDF in Java
Favicon
Java Combine Multiple Word Documents into One Single Word
Favicon
How to Merge Multiple Data frames with same columns In Pandas | Python
Favicon
Merge Command
Favicon
The Great Merge
Favicon
Setting Visual Studio Code as your git merge and diff tool
Favicon
Java Combine or merge PDF files into a Single PDF
Favicon
Merge party
Favicon
Shallow vs. Deep merge in React.js
Favicon
GitHub Workflow, Merge and Rebase
Favicon
Neovim e conflitos de merge
Favicon
Merge Two Sorted Arrays
Favicon
Solve merge conflicts with PHPStorm
Favicon
Git Merge vs Rebase
Favicon
Java merge and split PDF files
Favicon
Git Rebase and Interactive Rebase

Featured ones: