Praytic
Praytic

Reputation: 2071

How to overwrite git repository with new project?

I have private repository with an old project and cloned it to the public one. Now I want to upload new project to this repository. How can I do this without fetching and merging stuff, but with only brute force?

Upvotes: 0

Views: 149

Answers (1)

Ryan
Ryan

Reputation: 14659

You would remove the directory containing the .git directory. Then you would git clone <LOCATION> and it would work.

Make sure you backup any files you want to have after the directory is deleted.

Upvotes: 1

Related Questions