Tag: Git

How to revert git repo to clean state

Including symlinks, etc. git reset –hard git clean -fxd for submodules (use git reset and clean as THE_COMMAND): git submodule foreach git THE_COMMAND

Tagged with: ,

git revert old commit

git revert –no-commit <commit hash>

Tagged with: ,

Gitignore for Visual Studio

Tagged with: ,

Gitignore for Unity projects

  # =============== # # Unity generated # # =============== # Temp/ Library/ # ===================================== # # Visual Studio / MonoDevelop generated # # ===================================== # ExportedObj/ obj/ *.svd *.userprefs /*.csproj *.pidb *.suo /*.sln *.user *.unityproj *.booproj # ============ #

Tagged with: ,
Top