Search code examples
githubsourcetree

Delete all files from git repository using Sourcetree


The goal is to delete all file from my git repository: I want to remove all files from my git repository and I will update new code at the Repository.

How would I do that, knowing I am using sourcetree windows app?


Solution

  • i want to remove all files from my git repository and i will update new code at the Repository.
    Is that better or I have to create new fresh repository

    It is easier to, on the GitHub website:

    • rename the current repo
    • re-create a brand new repo (reusing the same name as the one you just renamed, if you want)
    • clone that new repo
    • add your data in it, commit and push