My proper Gitignore for
Unity
Temp/
Obj/
UnityGenerated/
Library/
[Bb]uild/
[Bb]uilds/
Assets/AssetStoreTools*
# Visual Studio cache directory
.vs/
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.opendb
*.VC.db
# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
# Unity3D Generated File On Crash Reports
sysinfo.txt
# Builds
*.apk
*.unitypackage
Unreal
DebugGame*
*Shipping*
**/Intermediate
**/Saved
/.vs
**/Build
**/Builds
*.sln
*.pdb
**.db
Config/SteamVRBindings
Config/Steamvr_ue_editor_app.json
#build ignore
##Windows
*.exe
*.exp
Binaries/**/*.lib
*.target
##Android
Binaries/Android/**
Tools
Remove files that are listed in the .gitignore but still on the repository
[codesyntax lang= »php »]git rm --cached `git ls-files -i --exclude-from=.gitignore` // Windows git ls-files -i -z --exclude-from=.gitignore | xargs -0 git rm --cached // Easier way git rm -r --cached . git add . git commit -m "Removing all files in .gitignore"[/codesyntax]
Reset Working copy to repository state
[codesyntax lang= »php »]git clean -xfd
git submodule foreach –recursive git clean -xfd
git reset –hard
git submodule foreach –recursive git reset –hard
git submodule update –init –recursive
[/codesyntax][codesyntax lang= »php »]
// fetch submodule after a clone
git submodule update --init --recursive
[/codesyntax]
folorentorium
Hello there, just changed into aware of your weblog through Google, and located that it’s truly informative. I am going to be careful for brussels. I will be grateful should you continue this in future. A lot of other people can be benefited from your writing. Cheers!