首页 > 解决方案 > 是否有另一种方法可以在 Windows 操作系统上的 git bash 中创建文本文件?

问题描述

我尝试使用 git bash 复制 con 命令在新存储库上创建文本文件,但它似乎不起作用。bash: copy: command not found,这是我从 git bash 得到的答案。

标签: git-bash

解决方案


尝试这个

echo "Sample Text" > sampleFile.txt

或者

type nul > testFile.txt

推荐阅读