Re: Source control on /etc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Excerpts from solsTiCe d'Hiver's message of Thu Feb 23 11:55:11 +0100 2012:
> "git config core.worktree /etc" is not really needed in your setup
True.

> I would like to suggest to use alias instead of env var. This way you
> can work easily on multiple git repo in the same shell
>
> for example
> alias etc-git='git --git-dir=/path/to/etc.git --work-dir=/etc'
> alias home-git='git --git-dir=/path/to/home.git --work-dir=$HOME' #just
> check that $HOME is defined
This is nice, i used this for a while, but i got used to my git aliases[1]  (eg gc="git commit")
that i always failed the commands :P
So i just use this little scrpit[2] 

Either way is very cool indeed.

[1] https://github.com/masterkorp/Home-files/blob/master/.bash.d/aliases.bash
[2] https://github.com/masterkorp/Home-files/blob/master/scripts/export_git.sh


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux