Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. error: unable to create symlink ... (File name too long)
  2.  
  3. git rebase -i 'abcdef123^'
  4.  
  5. git show
  6.  
  7. git commit --amend
  8. git rebase --continue
  9.  
  10. git clone --no-checkout the-repo tmp-clone-dir
  11. cd tmp-clone-dir
  12. git config core.symlinks false
  13. git checkout
  14. cp the-problem-file the-problem-file.bak # make a backup
  15. git rm the-problem-file
  16. git commit -m 'Removed problem file pretending to be a symlink' the-problem-file
  17. mv the-problem-file.bak the-problem-file # restore the backup; now it will be of type file
  18. git commit -m 'Added back the problem file - now with the correct type' the-problem-file
  19. git push origin master
  20. cd ..
  21. rm -rf tmp-clone-dir # IMPORTANT
  22.  
  23. git config core.symlinks false
  24. git rm <problem-file>
  25. git commit <problem-file>
  26. git push
  27. git config core.symlinks true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement