DEV Community

Discussion on: Git file renaming issues (deleting/adding instead of renaming)

Collapse
 
trddddd profile image
Roman Kirpichnikov • Edited

@nickytonline i find solution and create gist
gist.github.com/trddddd/69f1f13449...

step for fix it

  1. git filter-branch -f --tree-filter 'if [ -f old_file ]; then mkdir -p new_dir && mv old_file new_file; fi'
  2. mv old_file new_file
  3. gaa && gcmsg 'perfect'
Collapse
 
nickytonline profile image
Nick Taylor

Awesome. Thanks for sharing. 😎