📌  相关文章
📜  排除使用 git ignore 阻止文件提交 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:44.079000             🧑  作者: Mango

代码示例1
#To prevent a file from being committed to a repo:
#1. Create a text file in the directory where your project files are located.
#2. Name the file '.gitignore'. Note, there is a period(.) before the name.
#3. Enter the names of the files you want git to ignore in the .gitignore txt file.
#4. Voila, git will always not commit any file you listed in .gitignore
#but will still be available in your working directory