W
W
wvanya2022-04-07 21:36:22
git
wvanya, 2022-04-07 21:36:22

How to clean up the Master branch or create a new one to work with a new project?

How to clean up the Master branch or create a new one to work with a new project? the problem is that you need to start work in a new project, and in the branch the master has history and uncommitted changes from the previous project. How to fix it? how to start a project from scratch? I work in pycharm

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Kuznetsov, 2022-04-07
@wvanya

Delete the .git folder - this is the repository with your master branch as well.
Delete other unnecessary files in the working directory.
Start a new project in the usual way.

L
Leonid, 2022-04-07
@bravebug

Why not create a new folder with a new project and a new repository?

mkdir my_new_project
cd my_new_project
git init

** did not understand why touch the old project **

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question