Skip to content

Latest commit

 

History

History
16 lines (7 loc) · 299 Bytes

ckeck_and_clean_git.md

File metadata and controls

16 lines (7 loc) · 299 Bytes

Misc git commands

  • This will clean all git commits, dangling messages and repair some problems:
git reflog expire --expire=now --all
git gc --prune=now
  • When "Git refusing to merge unrelated histories" use the following option to push commend: --allow-unrelated-histories