gpt4 book ai didi

git - 将 git .gitignore 规则应用于现有存储库

转载 作者:IT王子 更新时间:2023-10-29 00:45:40 25 4
gpt4 key购买 nike

<分区>

我开始在一个 xcode 项目中使用 git,最近发现我可以使用 .gitignore 和 .gitattributes 文件来忽略来自编译器和系统的噪音。 现在我已经有了 .gitignore 和 .gitattributes 文件,我该如何“应用”新的忽略规则并摆脱版本控制中的垃圾?

我的 .gitignore 文件是:

# xcode noise
*.modelv3
*.pbxuser
*.perspective
*.perspectivev3
*.pyc
*~.nib/
build/*

# Textmate - if you build your xcode projects with it
*.tm_build_errors

# old skool
.svn

# osx noise
.DS_Store
profile

我的 .gitattributes 文件是:

*.pbxproj -crlf -diff -merge

谢谢!

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com