You are using linux syntax. Now, even though touch
is not understood by cmd prompt, it is a command understood by cmder
but expression ~/.gitignore
is still linux way of saying things.
What you can do on cmd prompt, I guess also would work on cmder (edit: doesn't seem to work for cmder):
copy con "%USERPROFILE%.gitignore"
[press F6 and enter after that]
For cmder, this could work:
touch "%USERPROFILE%.gitignore"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…