linux - 如何编辑 .gitignore 文件

标签 linux git ubuntu gitignore

我在 Ubuntu 18.4 上启动了 TheOdinProject,在 Git 部分它告诉我编辑 .gitignore 文件。我已经使用 touch .gitignore 创建了它它在我输入 ls -la 时出现但我在文件中没有看到它。在视频中 https://www.youtube.com/watch?v=HVsySz-h9r4所引用的文件已经打开,并且没有关于如何打开它的说明。
如何从终端打开 .gitignore 文件以添加类似 .DS_Store 的内容在里面?

最佳答案

.gitignore文件在 *nix 操作系统上是 stash 的,因为它们的点前缀 (link)。但是,您可以从 shell 正常访问它们。例如nano .gitignore .

关于linux - 如何编辑 .gitignore 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61045349/

相关文章:

linux - 用于关闭/重启 Linux 系统的 shell 脚本

cryptography - Linux内核是否支持RSA加密/解密?

android - CircleCI 容器上的 repo 中缺少提交

git - 如何检查 merge 提交是否包含手动更改(例如已解决的冲突)?

git - 更改分支的父级

ubuntu - 在 Ubuntu 上安装 Erlang 失败

java - 创建服务 Java spring ubuntu

c++ - opengl 程序在 glBegin(GL_QUADS) 上崩溃

c# - 性能:在 VS 中编译,在 Windows 和 Linux 上以 Mono 运行

ubuntu - 每 3 小时 cron 作业和每 3+1 小时 cron 作业