开发者

i want a git "sticky" file that stays in my working copy and never updates

i have a git stash which contains a single file, which canno开发者_如何学Ct be version controlled in the central repository (file is generated) but i want to cache locally in version control for convenience. right now i have it in a git stash but that lends itself to being accidentally staged.

i also have a second file (eclipse's .classpath) which IS under master version control but i make local modifications for my own convenience. i want similar sticky functionality with git so i don't accidentally commit this file, but have it here with my local modifications and can merge against upstream changes as well.

how can i accomplish this sort of "sticky" file?


Add it to your .gitignore file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜