My keyboard doesn't have a
~ key, and the Git Bash on Windows doesn't allow me to type that symbol with
Alt-### combinations nor to paste it in. How can I do this?
You could use an on screen keyboard with a qwerty lay-out.
In linux you can apparently do the following:
Don't know if this is true, I don't use Linux myself.