Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Deletion of file in .git folder

Simone Croci August 2, 2020

I have unintentionally deleted a file in the .git folder. The repository seems to still work (commit, push, pull, ... are working without problems). Could a deletion of a file inside the .git folder affect the files outside this folder? could the deletion undo some changes in the repository files?

1 answer

1 accepted

0 votes
Answer accepted
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 2, 2020

Hi @Simone Croci,

welcome to the Atlassian community!

It depends which file you've deleted but I would definitely recommend you to clone your repository again to create the correct content of .git folder.

sicroci August 4, 2020

I will do... thank you

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events