Git for WindowsのインストーラーをGit公式ページからダウンロードしてくる。
https://git-scm.com/doc
Visual Studio Codeの公式ページに「Git-scm(Git公式)からダウンロードして来い」と記載されている。
https://code.visualstudio.com/docs/editor/versioncontrol
Note: VS Code will leverage your machine's Git installation, so you need to install Git first before you get these features. Make sure you install at least version 2.0.0.
なお、蛇足だが、「Visual Studio Team Services」を利用すると、無料でGitのprivateリポジトリを利用でいるようだ
Tip: VS Code will work with any Git repository. If you don't already have a private hosted Git provider, Visual Studio Team Services is a great free option. Click here to sign-up.
シェル(Explorer)へのメニュー追加のオプション

Explorerから直にGit for Windowsを使う予定は無いので「無し」にした。


デフォルトのGit用エディタの選択。
せっかくなのでVisual Studio Codeを選択してみた。



コマンドプロンプトからGitコマンドを使えるようにするか否か。
Bash Onlyを選ぶと「使えない」代わりに、環境変数を汚さない、らしい。
詳しくはこちらを参照→【初心者向け】Gitのインストール方法をわかり易く解説(画面付き)2018.04.13
https://eng-entrance.com/git-install


改行コードの扱い。
GitHub Desktopがどういう設定か分からなかったので、とりあえずデフォルトのまま進めた。


選択の最後。これで「Install」ボタンを押すとインストールが開始される。

インストールが完了すると、この画面になる。

操作としては以上ー。
これで、Visual Studio CodeからGit連携が使えるようになった。
なお、Github Desktopはインストール済み&利用中、とする。
(そのせいか、ssh鍵作成や、GitHubへのアクセスの設定は不要だった。)
▽実施前の環境
VSCode 1.20.0
GitHub Desktop 1.2.3
▽実施後の環境
VSCode 1.20.0
GitHub Desktop 1.2.3
+
Gitが追加されて、以下が入った。
Git Bash
Git CMD
Git GUI
▼参考リンク。
Visual Studio Code の git 連携機能と git コマンドについて (2018/05/23)
https://qiita.com/satokaz/items/4660ce57ca8eb456a096
GitをWindowsで使うためのGit for Windowsのインストールと初期設定
https://haniwaman.com/git-for-windows/
自分用 Git For Windowsのインストール手順
https://qiita.com/toshi-click/items/dcf3dd48fdc74c91b409
Visual Studio Code で Git を 使う
https://azriton.github.io/2017/08/23/Visual-Studio-Code%E3%81%A7Git%E3%82%92%E4%BD%BF%E3%81%86/
PortableGit for Windows 64bit の インストール
https://azriton.github.io/2017/08/21/PortableGit-for-Windows%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB/