I
I
Igorek982021-06-07 12:10:51
git
Igorek98, 2021-06-07 12:10:51

How to reset a project on git?

There is a project in which now there is a lot of superfluous and I would like to completely clear it (restart).
How to clear the entire project completely from all commits and files?
And how can you clear only one branch?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sl0, 2021-06-07
@sl0

Delete the project and create it again.
Likewise with the thread.

V
Vladimir, 2021-06-07
@Casufi

It's not clear what you mean by "clear", if you delete the history, you can clone the repository without history.
https://www.stefanjudis.com/today-i-learned/you-ca...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question