I have the followin .gitignore file.
plugins
code/golang/*
!code/golang/src/goclient
I expected that everything under code/golang/*
would be ignored except !code/golang/src/goclient
.
What am I doing wrong - do you know?
I have the followin .gitignore file.
plugins
code/golang/*
!code/golang/src/goclient
I expected that everything under code/golang/*
would be ignored except !code/golang/src/goclient
.
What am I doing wrong - do you know?
Try specifying the exact subdirectory.
#exclude everything in golang
code/golang/*
#except the src subdirectory
!code/golang/src/*
#exclude everything in source
code/golang/src/*
#except the goclient
!code/golang/src/goclient
You need to do like this:
plugins
code/golang/*
!code/golang/src/
code/golang/src/*
!code/golang/src/goclient/