LoginSignup
4
4

More than 1 year has passed since last update.

Visual Studio 2019 gitignore 作成

Posted at

gitignore の作成で、こんな便利なコマンドがあるのか!知らなかった。
今まで手で作ってた。。

コマンドプロンプトから、以下のコマンドで、gitignoreファイルが作成される。

dotnet new gitignore

(dotnetコマンドは、Visual Studio 2019がインストールされているだけで、入っていました)

参考

https://suzukaprogrammer.com/2022/06/gitignore/
https://wonwon-eater.com/dotnet-gitignore/

dotnet core3.1で作成したgitignoreは以下の通りです
内容を直接コピーして使用することも出来ますが、dotnet coreのバージョンに伴って中身は変わっていきます。
バージョンが一致していれば構いませんが、出来れば各自の環境で作成することをお勧めします。

確かにdiffをとると、.NET 5で作成したのと少しだけ違いました。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4