Re: [git-users] Is it possible to git add a set of files as non-text, irrespective of any .gitattributes files?
From: Sam Roberts vieuxt...@gmail.com And that after, its removed, even if the user SIGTERMed your command during the add, before the script got to removing the .gitattributes. One possiblity is to make sure that the temporary files you are concerned with have names that are disjoint from any non-temporary files. Then if .gitattributes gets polluted, it doesn't matter, because the temporary entries can never affect a non-temporary file. Dale -- You received this message because you are subscribed to the Google Groups Git for human beings group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[git-users] Is it possible to git add a set of files as non-text, irrespective of any .gitattributes files?
I need to temporarily add a set of text files that come from a unix tar file, and I'm doing it on windows (temporarily, in that I intend to push it to heroku). I can't get around the LF will be converted to CRLF warning. The problem is I don't control the format of the files I'm adding, I don't want to change my global eol and autocrlf settings (they are right for the development I do). I'd like them to be treated as binary, but I'm having trouble seeing a robust way to do this. I could write a local .gitattributes, do the `git add -A -f .`, and remove the .gitattributes... but that's not atomic. I'm doing this all in a much larger script, I'm worried about damaging the local user's repo. Alternatively, if there was a way to disable that specific warning for a moment, that would be pretty great, too. Thoughts? -- You received this message because you are subscribed to the Google Groups Git for human beings group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[git-users] Is this possible with git
Hi all, I'm just starting to look at git after a long while away from version control software (as a clue, the last thing I used in real anger was sccs). What I'd like to know if it is possible to achieve the following: We use software that hosts multiple web sites that has a structure like /base -- /common_dir1 \ \ \ /common_dir2 \ \ /site1 \ /site2 What I'd like to do is to be able to setup a repository to track all changes to /base, /common_dir1, /common_dir2 /site1 and another seperate repository to track /base, /common_dir1, /common_dir2 / site2. Initially, I'd be looking at using local repositories but would probably like to be able to clone the structures to remote machines for backup, but I'm happy to jump straight to remote repositories if needed. I'd appreciate any advice anyone could give - from what I've seen through google this might well involve submodules but I just can't get them to work. Thanks, Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Git for human beings group. To post to this group, send email to git-users@googlegroups.com To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/git-users?hl=en -~--~~~~--~~--~--~---