These files should all be ignored:
.weirdBackupFileType
.travis.yml
The following files should not be ignored:
_.weirdBackupFileType
Z.travis.yml
If you want to ignore all dotfiles, add this in your .gitignore file (If it doesn't exist, add it)
.*
!.gitignore
Your answer is very simple:
This is the content of your .gitignore
file:
# ignore those files
.weirdBackupFileType
.travis.yml
#DONOT ignore those files (this is what the ! is for - un ignore files)
!_.weirdBackupFileType
!Z.travis.yml
And that's it.
In the image you can see that i have created the file and after adding it to the .gitignore
they are not in the status any more.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With