Skip to content

Instantly share code, notes, and snippets.

@tokineco
Last active February 18, 2021 05:33
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save tokineco/8cd2f8c3b8e5d926c54c to your computer and use it in GitHub Desktop.
Save tokineco/8cd2f8c3b8e5d926c54c to your computer and use it in GitHub Desktop.
Cocos2d-x v3.x .gitignore
# OSX - https://github.com/github/gitignore/blob/master/Global/OSX.gitignore
.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
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# Windows - https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk
# CMake
*CMakeCache.txt
*CMakeFiles/
*cmake_install.cmake
*Makefile
# cocos studio
*.udf
# proj.android
bin/
proj.android/assets/
proj.android/bin/
proj.android/gen/
proj.android/libs/
proj.android/local.properties
proj.android/obj/
cocos2d/cocos/platform/android/java/bin/
cocos2d/cocos/platform/android/java/gen/
cocos2d/cocos/platform/android/java/local.properties
cocos2d/cocos/platform/android/java/res/
.metadata/
.recommenders/
# proj.android-studio
.idea/
*.iml
proj.android-studio/app/assets/
proj.android-studio/app/obj/
proj.android-studio/app/libs/armeabi/
proj.android-studio/app/libs/armeabi-v7a/
proj.android-studio/app/libs/x86/
proj.android-studio/app/gradle.properties
proj.android-studio/app/local.properties
proj.android-studio/*/build/
cocos2d/cocos/platform/android/libcocos2dx/build/
cocos2d/cocos/platform/android/java/libs/gps/build/
# proj.ios_mac
cocos2d/build/build/
cocos2d/build/cocos2d_libs.xcodeproj/xcuserdata/
proj.ios_mac/build/
proj.ios_mac/*.xcodeproj/project.xcworkspace
proj.ios_mac/*.xcodeproj/xcuserdata/
!*.pch
# proj.linux
# proj.win32
*.suo
.vs/
.vscode/
cocos2d/cocos/2d/Debug.*/
cocos2d/cocos/editor-support/spine/proj.win32/Debug.*/
cocos2d/external/Box2D/proj.win32/Debug.*/
cocos2d/external/recast/proj.win32/Debug.*/
cocos2d/cocos/2d/Release.*/
cocos2d/cocos/editor-support/spine/proj.win32/Release.*/
cocos2d/external/Box2D/proj.win32/Release.*/
cocos2d/external/recast/proj.win32/Release.*/
proj.win32/*.sdf
proj.win32/*.opensdf
proj.win32/Debug.*/
proj.win32/Release.*/
# others
@tokineco
Copy link
Author

tokineco commented Oct 7, 2015

proj.android-studio add *.iml

@toughrogrammer
Copy link

it looks not bad 👍

@MrCapone
Copy link

MrCapone commented Sep 26, 2016

Since cocos uses CMake, you can add this for ignore CMake-generated files:

# CMake
*CMakeCache.txt
*CMakeFiles/
*cmake_install.cmake
*Makefile
lib/

@tanukidarou
Copy link

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment