git-bash - 是否有另一种方法可以在 Windows 操作系统上的 git bash 中创建文本文件?
问题描述
我尝试使用 git bash 复制 con 命令在新存储库上创建文本文件,但它似乎不起作用。bash: copy: command not found,这是我从 git bash 得到的答案。
解决方案
尝试这个
echo "Sample Text" > sampleFile.txt
或者
type nul > testFile.txt
推荐阅读
- php - 如何使用 PA API 在网站上获取产品价格
- ios - 为什么新建 UIView 类时,不能一起创建 XIB?
- laravel - PUT 和 POST 方法的 REST 标准是什么?
- sql - 如何在 Id 列下插入具有不同值的同一表中的相同记录?(注:ID是主键自增列)
- python - random.sample 和 random.choice 函数在我的代码中不起作用
- kubernetes - 解析 kubernetes 集群 (AKS) 中的自定义 dns
- python - 拆分列中的行并为数据框绘制图形。Python
- r - qqnorm 在 R 中做了什么?
- php - 测试数据库中的 JSON 数据并获取列
- react-native - 假设 AppDelegate 中不存在某些代码,react-native-navigation 安装说明的问题