Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For git repositories that are not touched very often, you can move the .git directory to something that isn't picket up automatically. Use it like this:

    mv .git dot_git
    git --git-dir="dot_git" add ...
Thats also a nice trick if you need a git repos in a git repos, e.g. for integration test for libraries interacting with git.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: