gitignore ์‰ฝ๊ฒŒ ์ž‘์„ฑํ•˜๊ธฐ

2021. 10. 7. 13:55ใ†Github

Github์œผ๋กœ ํ˜‘์—…ํ•˜๋‹ค๋ณด๋ฉด macOS๋Š” .DS_Store๊ฐ€, Xcode์—์„œ๋Š” xcshareddata ๊ฐ™์€ ํŒŒ์ผ๋“ค์ด ๊ณ„์† ์ƒ์„ฑ๋œ๋‹ค.

.DS_Store๋Š” macOS ํŠน์œ ์˜ ํŒŒ์ผ ์•„์ด์ฝ˜์ด๋‚˜ ์œ„์น˜ ๋“ฑ์ด ๋ฐ”๋€Œ๋ฉด ์ƒ์„ฑ๋˜๋Š” ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด๊ณ , Xcode๋Š” ๋‚ด ์ปดํ“จํ„ฐ์— ๋งž์ถฐ์„œ ๋ฐ์ดํ„ฐ๊ฐ€ ๋ณ€๊ฒฝ๋  ๋•Œ ์ƒ์„ฑ๋œ๋‹ค(์˜ˆ๋ฅผ ๋“ค๋ฉด ์ƒ๋Œ€๋ฐฉ์ด ์ž๊ธฐ ์•„์ด๋””๋กœ Sign์„ ํ•ด๋‘๊ณ  ์ง„ํ–‰ํ•œ ๋’ค์— ๊นƒํ—™ ํ’€์„ ๋ฐ›์œผ๋ฉด ๋นŒ๋“œ ์—๋Ÿฌ๊ฐ€ ๋‚œ๋‹ค)

 

๊ทธ๋ ‡๊ธฐ ๋•Œ๋ฌธ์— .gitignoreํŒŒ์ผ์— ์ง์ ‘ .DS_Store๋ฅผ ์ถ”๊ฐ€ํ•ด์คฌ๋Š”๋ฐ, ์ด์ƒํ•˜๊ฒŒ๋„ ์ ์šฉ์ด ์ž˜ ์•ˆ๋๋‹ค. ์™„์ „ํžˆ ์ ์šฉ๋œ๊ฒŒ ์•„๋‹Œ ๊ฒƒ ๊ฐ™์•„์„œ ์‰ฌ์šด ๋ฐฉ๋ฒ•์„ ์ฐพ์•„๋ดค๋‹ค.

 

์ด ์‚ฌ์ดํŠธ๋ฅผ ํ†ตํ•ด์„œ gitignore๋ฅผ ์ƒ์„ฑํ•˜๋ฉด ๊ณ ๋ฏผํ•  ํ•„์š”๋„ ์—†๋‹ค!

 

https://www.toptal.com/developers/gitignore

 

gitignore.io

Create useful .gitignore files for your project

www.toptal.com

 

์‚ฌ์ดํŠธ์— ๋“ค์–ด๊ฐ€์„œ Create์ฐฝ ์˜†์— ์ž๊ธฐ๊ฐ€ ์›ํ•˜๋Š” ๊ฑธ ์ž…๋ ฅํ•œ๋‹ค.

 

๋‚˜ ๊ฐ™์€ ๊ฒฝ์šฐ๋Š” macOS, cocoapods, firebase,๊ทธ๋ฆฌ๊ณ  xcode์˜€๋‹ค. ๊ฐ„๋‹จํ•˜๊ฒŒ macOS์™€ Xcode๋งŒ ์ž…๋ ฅํ•œ๋‹ค๋ฉด ๊ฒฐ๊ณผ๊ฐ€

 

https://www.toptal.com/developers/gitignore/api/macos,xcode(์ƒˆ๋กœ์šด ๋งํฌ๋กœ ๋ฆฌ๋‹ค์ด๋ ‰์…˜ ๋œ๋‹ค)

# Created by https://www.toptal.com/developers/gitignore/api/macos,xcode,firebase,cocoapods
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,xcode,firebase,cocoapods

### CocoaPods ###
## CocoaPods GitIgnore Template

# CocoaPods - Only use to conserve bandwidth / Save time on Pushing
#           - Also handy if you have a large number of dependant pods
#           - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGNORE THE LOCK FILE
Pods/

### Firebase ###
.idea
**/node_modules/*
**/.firebaserc

### Firebase Patch ###
.runtimeconfig.json
.firebase/

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Xcode ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Gcc Patch
/*.gcno

### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
**/xcshareddata/WorkspaceSettings.xcsettings

# End of https://www.toptal.com/developers/gitignore/api/macos,xcode,firebase,cocoapods

 

์ด๊ฑธ gitignoreํŒŒ์ผ์— ์˜ฌ๋ ค์ฃผ๊ณ  ์ปค๋ฐ‹ํ•ด์ฃผ๋ฉด ๋ณ€๊ฒฝ์‚ฌํ•ญ ์ €์žฅ ์™„๋ฃŒ~!๐Ÿ’ƒ

 

'Github' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Open Source์— issue ๋‚จ๊ฒจ๋ณธ ํ›„๊ธฐ  (0) 2021.09.24