[racket-dev] How to avoid to modify .gitignore when pull request
Edit .gitgnore and then use
git update-index --assume-unchanged .gitignore
to tell git to ignore the changes.
Revert with
git update-index --no-assume-unchanged .gitignore
if needed.
Tobias
On Thu, 13 Dec 2012 15:22:29 +0100, Chen Xiao <chenxiao770117 at gmail.com>
wrote:
> I fork the codebase on my local computer. Then I .configure & make & make
> install, as a result, there are many compiled things like bin or *.o
> files.
>
> To avoid add them to my commit, I modify .gitignore to ignore them all.
>
> But I can't avoid add .gitignore at all, isn't it?
>
> So how do you solve this problem?
--
---------------------------------------------------------
Tobias Hammer
DLR / Institute of Robotics and Mechatronics
Muenchner Str. 20, D-82234 Wessling
Tel.: 08153/28-1487
Mail: tobias.hammer at dlr.de