First time here? Check out the Help page!
1 | initial version |
For the second one, I think I'm just a git-moron, and git-status (and/or Sourcetree) was also leading me into error (closing and reopening SourceTree is needed for it to show properly...)
Anyway, here's what works.
# ==============================================
# Original setup: ignore all but the gitignore
# ==============================================
#Anchor the ignore
/*
!.gitignore
# =========================
# OpenStudio
# =========================
!*.osm
!*.rb
!*.xml
# If you want to ignore all but the scripts folder
#Unignore first level
!/myfile/
#Reignore the rest of the content
/myfile/*
#Uignore second level
!/myfile/scripts/
# If you want to not ignore the entire folder
!/myfile2/
2 | No.2 Revision |
For the second one, I think I'm just a git-moron, and git-status (and/or Sourcetree) was also leading me into error (closing and reopening SourceTree is needed for it to show properly...)
Anyway, here's what works.
# ==============================================
# Original setup: ignore all but the gitignore
# ==============================================
#Anchor the ignore
/*
!.gitignore
# =========================
# OpenStudio
# =========================
!*.osm
!*.rb
!*.xml
# If you want to ignore all but the scripts folder
#Unignore first level
!/myfile/
#Reignore the rest of the content
/myfile/*
#Uignore #Unignore second level
!/myfile/scripts/
# If you want to not ignore the entire folder
!/myfile2/