Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java
  3. Question
Java

git remove-How do I remove Git tracking from a project?

Asked by Abdul Rehman Jun 23, 2021 1.3K views 1 answer
Share

About this question

 I want to remove Git tracking from a project's directory. What is the correct method to do this? Can I do a shell command such as

rm -rf .git

from my projects directory or is there a way to do this as a Git command?

I used this project to learn Git and realize I made some mistakes early on in the project with moved, renamed and deleted files. I'd like to remove all Git tracking and start fresh with git init.

Your answer

1 Answer

More Java discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.