我正在向公共 GitHub 存盤庫添加一些 swift playground,但我不確定要提交和推送哪些檔案。
這是一個 Playground 中的檔案
File.playground/Contents.swift
File.playground/contents.xcplayground
File.playground/playground.xcworkspace/contents.xcworkspacedata
File.playground/playground.xcworkspace/xcuserdata/username.xcuserdatad/UserInterfaceState.xcuserstate
File.playground/xcuserdata/username.xcuserdatad/xcschemes/xcschememanagement.plist
注意:我File用username
uj5u.com熱心網友回復:
如果您尚未將這些檔案添加到索引中(如果您已添加但未提交,您可以執行 agit reset來取消暫存它們),您可以添加 a.gitignore作為其內容,其內容為 one 表單github/gitignore Swift.gitignore。
然后做一個git status:你可以添加、提交和推送仍然列出的檔案。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/313243.html
