Lawrence Gimenez
Lawrence Gimenez

Reputation: 3255

Which Git files to remove

I want GitHub to stop tracking my local repository. And after that upload it again as a fresh copy. Which files will I remove inside an Android folder? Or is there a command? Thanks.

Edited: I'm on Windows 7.

Upvotes: 2

Views: 65

Answers (1)

antew
antew

Reputation: 7478

You can delete the .git folder in your project root, or if you want to export only what is under source control you could do:

git archive --format zip --output /path/to/save/exported.zip master 

Edit: If you are on Windows you will need Show Hidden Files and Folders enabled in order to see the .git folder. Start --> Control Panel --> Appearance and Personalization --> Folder Options --> View tab, under Advanced Settings click Show hidden files, folders, and drives

Upvotes: 3

Related Questions