manage_config_with_git
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manage_config_with_git [2025/03/11 13:25] – jianwu | manage_config_with_git [2025/03/12 08:27] (current) – jianwu | ||
|---|---|---|---|
| Line 70: | Line 70: | ||
| done. | done. | ||
| - | === To list all the files currently being tracked under the branch master, use ls-tree:=== | + | === To list all files currently being tracked under the branch master, use ls-tree:=== |
| <code Bash> | <code Bash> | ||
| $ git ls-tree -r master --name-only | $ git ls-tree -r master --name-only | ||
| Line 280: | Line 280: | ||
| done. | done. | ||
| - | === To list all the files currently being tracked under the branch master, use ls-tree:=== | + | === To list all files currently being tracked under the branch master, use ls-tree:=== |
| <code Bash> | <code Bash> | ||
| $ git ls-tree -r master --name-only | $ git ls-tree -r master --name-only | ||
| Line 358: | Line 358: | ||
| !.gitignore | !.gitignore | ||
| !.gitconfig | !.gitconfig | ||
| + | </ | ||
| + | Another sample of '' | ||
| + | <code Bash> | ||
| + | $ cat / | ||
| + | # Ignore all | ||
| + | * | ||
| + | |||
| + | # Unignore all start with dot files | ||
| + | !.* | ||
| + | |||
| + | # ignore all start with dot dirs | ||
| + | #.*/ | ||
| + | |||
| + | # Unignore specific dirs | ||
| + | !apache2/ | ||
| + | !ssh/ | ||
| + | !ufw/ | ||
| + | !samba/ | ||
| + | !gdm3/ | ||
| + | !timeshift/ | ||
| + | !postfix/ | ||
| + | !dovecot/ | ||
| + | !cron.d/ | ||
| + | !pam.d/ | ||
| + | |||
| + | # Unignore .json files | ||
| + | !*.json | ||
| + | |||
| + | # Unignore .conf files | ||
| + | !*.conf | ||
| + | |||
| + | # Unignore specific files | ||
| + | !authorized_keys | ||
| + | !id_rsa.pub | ||
| + | !known_hosts | ||
| + | !profile | ||
| + | !hostname | ||
| + | !hosts | ||
| + | !hosts.allow | ||
| + | !hosts.deny | ||
| + | !aliases | ||
| + | |||
| + | # pam.d | ||
| + | !pam.d/atd | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/smtp | ||
| + | !pam.d/chfn | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/sshd | ||
| + | !pam.d/ | ||
| + | !pam.d/cron | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/su | ||
| + | !pam.d/chsh | ||
| + | !pam.d/cups | ||
| + | !pam.d/ | ||
| + | !pam.d/ppp | ||
| + | !pam.d/sudo | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/ | ||
| + | !pam.d/su-l | ||
| + | |||
| + | # apache2 | ||
| + | !apache2/ | ||
| + | !apache2/ | ||
| + | !apache2/ | ||
| + | !apache2/ | ||
| + | !apache2/ | ||
| + | |||
| + | # ssh | ||
| + | !ssh/ | ||
| + | !ssh/ | ||
| + | !ssh/ | ||
| + | |||
| + | # ufw | ||
| + | !ufw/ | ||
| + | !ufw/ | ||
| + | ufw/ | ||
| + | !ufw/ | ||
| + | !ufw/ | ||
| + | !ufw/ | ||
| + | !ufw/ | ||
| + | !ufw/ | ||
| + | !ufw/ | ||
| + | !ufw/ | ||
| + | |||
| + | # postfix | ||
| + | postfix/* | ||
| + | !postfix/ | ||
| + | |||
| + | # dovecot | ||
| + | dovecot/* | ||
| + | !dovecot/ | ||
| + | dovecot/ | ||
| + | |||
| + | !dovecot/ | ||
| + | !dovecot/ | ||
| + | |||
| + | # cron.d | ||
| + | !cron.d/ | ||
| + | !cron.d/ | ||
| + | !cron.d/ | ||
| + | !cron.d/ | ||
| + | !cron.d/php | ||
| + | !cron.d/ | ||
| + | !cron.d/ | ||
| + | !cron.d/ | ||
| + | |||
| + | # ignore .tmp .org files | ||
| + | *.tmp | ||
| + | *.org | ||
| + | .bash_history | ||
| + | .lesshst | ||
| + | |||
| + | # definisions hereunder are not necessary. | ||
| + | |||
| + | #ignore .git/ | ||
| + | .git/ | ||
| + | |||
| + | # Prerequisites | ||
| + | #*.d | ||
| + | |||
| + | # Compiled Object files | ||
| + | *.slo | ||
| + | *.lo | ||
| + | *.o | ||
| + | *.obj | ||
| + | |||
| + | # Precompiled Headers | ||
| + | *.gch | ||
| + | *.pch | ||
| + | |||
| + | # Compiled Dynamic libraries | ||
| + | *.so | ||
| + | *.dylib | ||
| + | *.dll | ||
| + | |||
| + | # Fortran module files | ||
| + | *.mod | ||
| + | *.smod | ||
| + | |||
| + | # Compiled Static libraries | ||
| + | *.lai | ||
| + | *.la | ||
| + | *.a | ||
| + | *.lib | ||
| + | |||
| + | # Executables | ||
| + | *.exe | ||
| + | *.out | ||
| + | *.app | ||
| </ | </ | ||
manage_config_with_git.1741667103.txt.gz · Last modified: 2025/03/11 13:25 by jianwu