如何只排除一次 .gitignore 规则?
How to exclude .gitignore rules only once?
在服务器上初始化我的laravel 8应用程序(ubuntu 20)我需要上传一些存储中的图像,这被排除在外
来自 git by .git忽略规则。
我不喜欢删除。git完全忽略,但是是否有办法只排除一次这些规则?
似乎有一些强制选项,但我如何在本地使用它 运行 命令:
git push -u origin master
在服务器上:
git pull origin master
?
我的根。git忽略:
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
# Node artifact files
node_modules/
dist/
# Compiled Java class files
*.class
# Compiled Python bytecode
*.py[cod]
# Log files
*.log
# Package files
*.jar
# Maven
target/
dist/
# JetBrains IDE
.idea/
# Unit test reports
TEST*.xml
# Generated by MacOS
.DS_Store
# Generated by Windows
Thumbs.db
# Applications
*.app
*.exe
*.war
# Large media files
*.mp4
*.tiff
*.avi
*.flv
*.mov
*.wmv
/public/js/laravel.app.js
/public/js/oneui.app.js
/public/js/tables_datatables.js
/public/css/oneui.css
composer.lock
package-lock.json
.env
vendor/
route_list.txt
哪个是正确的语法?
谢谢!
看起来像添加 -f 键,例如:
git add -f storage/app/public/Photos/1/img-13.jpg
适用于我的情况
在服务器上初始化我的laravel 8应用程序(ubuntu 20)我需要上传一些存储中的图像,这被排除在外 来自 git by .git忽略规则。
我不喜欢删除。git完全忽略,但是是否有办法只排除一次这些规则?
似乎有一些强制选项,但我如何在本地使用它 运行 命令:
git push -u origin master
在服务器上:
git pull origin master
?
我的根。git忽略:
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
# Node artifact files
node_modules/
dist/
# Compiled Java class files
*.class
# Compiled Python bytecode
*.py[cod]
# Log files
*.log
# Package files
*.jar
# Maven
target/
dist/
# JetBrains IDE
.idea/
# Unit test reports
TEST*.xml
# Generated by MacOS
.DS_Store
# Generated by Windows
Thumbs.db
# Applications
*.app
*.exe
*.war
# Large media files
*.mp4
*.tiff
*.avi
*.flv
*.mov
*.wmv
/public/js/laravel.app.js
/public/js/oneui.app.js
/public/js/tables_datatables.js
/public/css/oneui.css
composer.lock
package-lock.json
.env
vendor/
route_list.txt
哪个是正确的语法?
谢谢!
看起来像添加 -f 键,例如:
git add -f storage/app/public/Photos/1/img-13.jpg
适用于我的情况