Maintain branch history when moving or renaming folder

2

I need to reorganize a structure where the source codes of my applications are maintained, but when I move the branch to a new folder, its modification history is lost.

How can I move or rename a branch within my repository without losing the change history?

    
asked by anonymous 17.08.2017 / 17:01

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.

    
17.08.2017 / 19:40