Git
- Use
.gitignore
to exclude files from git tracking- for example, in a new line of the
.gitignore
file,- add
*.png
to exclude all files suffixed by.png
- add
temp/
to exclude all files under the folder namedtemp
that is exactly under the same directory as the.gitignore
- add
**/temp/
to exclude all files and folders in any folder namedtemp
- add
**/data/*.mat
to exclude any.mat
files in all folders nameddata
(.mat
files under the subfolders ofdata
will NOT be excluded) - add
**/data/**/*.mat
to exclude any.mat
files under all folders nameddata
(.mat
files under the subfolders ofdata
will also be excluded)
- add
- for example, in a new line of the
- Develop on a branch other than
master
ormain
- Don’t commit many unrelated changes at once, split them into multiple commits so that the changes in each commit are related. In this way, the commit message can more accurately describe the change.
[i18n] post_last_mod October 27, 2021: Migrate to hugo/docsy (0f7c430)