B
B
Black_Fire2021-09-10 13:14:23
git
Black_Fire, 2021-09-10 13:14:23

How to delete files only from copied branch in git?

I copied a branch from another branch and now from the copy I need to delete some files that are in the source branch. When I remove these files from the copy, they are removed from the source as well. How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gennady, 2021-09-10
@gkukuruz

If the files you delete are not tracked by git, it doesn't matter which branch you delete them from.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question