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

From https://github.com/github/gitignore/blob/master/VisualStudio.gitignore ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. # User-specific files *.suo *.user *.userosscache *.sln.docstates # User-specific files (MonoDevelop/Xamarin Studio) *.userprefs # Build results [Dd]ebug/ [Dd]ebugPublic/ [Rr]elease/ [Rr]eleases/ x64/

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