Keep branch history when moving or renaming folder

Asked

Viewed 83 times

2

I need to reorganize a structure in which the source codes of my applications are maintained, however, when I move the branch for a new folder, your modification history is lost.

How can I move or rename a branch inside my repository without losing modification history?

1 answer

0

Hello,

You can rename using -m.
1) git checkout "branch"
2) git branch -m "rename_branch"

A hug

Note: Let me know if this helped you.

  • Unfortunately, I’m not using git as a repository. I can move and rename the branch, but when I commit, the modification history is lost.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.