How do you sunset a file in git? (I mean remove a file but preserve its history.) -


i have git project. source files have been dispensed in latest version. want remove them repo forward, preserve history far. i.e. if check out yesterday's repo had better have these files or wouldn't compile.

i know it's "git rm", have 2 problems git rm right now. 1 can't find documentation definitively says "git rm preserves file's history in repo". , i've deleted these files working directory, doubt can git rm files aren't there. (i copy them back, able git rm, want make sure i'm doing things right.)

it indeed git rm.

of course preserves files history. in prior commits , can rest, assured there.

and yes, can git rm files did delete, difficulty can't tab complete file names, don't exist.

when working in git repository easier if can remember git rm <file> instead of doing rm <file> , git rm <file>.

as git, purpose, "preserves files history in repository" more see comment when behavior isn't happening. warning note says opposite of design, such "warning, function not preserve history in repository", more stating option of git preserve file history.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -