Hi, @Dani Kaplan
Welcome to Microsoft Q&A!
What type of your project? I created an ASP .NET Core project and published it to a folder. The .git folder in the solution folder was not published to the folder.
You can refer to Exclude files and How to: Exclude files from the build.
Sincerely,
Peng
*
If you have extra questions about this answer, please click "Comment". If the answer is the right solution, please click "Accept Answer" and kindly upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.