Fetching config from git

March 2012


I've got the configuration created in lying around in a git repository. This is one way to get it out.

apprentice@testserver:~$ sudo mv etc/samba/smb.conf etc/samba/smb.conf.dist
apprentice@testserver:~$ sudo mv etc/nsswitch.conf etc/nsswitch.conf.dist
apprentice@testserver:~$ sudo mv etc/krb5.conf etc/krb5.conf.dist
apprentice@testserver:~$ sudo git pull apprentice@git.mydomain.com:/github/winbind-config
apprentice@testserver:~$ sudo git checkout HEAD