Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dotnet new gitignore not creating .gitignore file

I am using Visual Studio 2019

I am trying to create .gitignore in NuGet Package Manager Console, but I find no .gitignore shown in the Visual Studio and the root folder.

> dotnet new gitignore

Getting ready...
The template "dotnet gitignore file" was created successfully.


> ls

my_server
my_server.sln


> dotnet new gitignore

Creating this template will make changes to existing files:
  Overwrite   .gitignore

like image 492
CCCC Avatar asked Oct 11 '25 22:10

CCCC


1 Answers

I also tried same command : dotnet new gitignore and I successfully created .gitignore file but you can not see by : ls command you can go to inside that folder where you run this command : dotnet new gitignore you will find .gitignore file is present there don't worry. it will work fine. : ls command can't find with '.extension' file it should have file name to find file name.

to see .gitignore file you should use : ls -a command to see .gitignore file

like image 101
Krishna Bankar Avatar answered Oct 14 '25 12:10

Krishna Bankar