Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

i have a git stash which contains a single file, which cannot 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?

like image 655
Dustin Getz Avatar asked Dec 09 '25 12:12

Dustin Getz


1 Answers

Add it to your .gitignore file.

like image 87
Abizern Avatar answered Dec 11 '25 03:12

Abizern