Re: tracking file locally without pushing it to remote

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

 



On Sat, Jul 23, 2011 at 7:27 PM, Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> wrote:
> Manage the configuration files in a different repository (but with the
> same working tree). Git does not support sharing worktree this way, so
> it's a bit inconvenient.

And if you still want to manage config template files with the same
name in the main repository, to be pushed to a remote one. Set
assume-unchanged bit (see update-index man page) on those files in
main repo, so you won't see their changes against the templates and
"git commit -a" won't commit them. To be on the safe side, add a
post-commit hook that disallows committing any changes to config
files.

Assume unchanged bits are not persistent (ie. you will need to set it
after branch switching, reset index...), but if this way works well,
maybe we can add a pattern file to automatically set it.
-- 
Duy
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]