簡體   English   中英

如何在 git 存儲庫中創建 .gitignore 文件並在此 .gitignore 文件中添加文件/文件夾的名稱,以便 git 可能不會跟蹤這些文件

[英]How to make a .gitignore file in a git repository and add names of the Files/Folders in this .gitignore file so that git may not tracked these files

Git ##*當我遇到問題時,我已經使用

git init 但沒有任何人可以指導我的 git ignore 文件

您可以手動添加 .gitignore 文件。 查看有用的模板: https : //github.com/github/gitignore

您可以在 git bash 中通過touch .gitignore創建忽略文件。
這是節點的模板忽略文件:
https://github.com/github/gitignore/blob/7293c14345c205c679722364a01b88d331e862ff/Node.gitignore#L41

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM