How to make git ignore temporary files created by MS Office (starting with ~$) September 20, 2023 by Tarik To ignore any file starting with ~$, use the pattern: ~$* Nothing more is needed.