April 29, 2024, 6:46 a.m. | 01kg

DEV Community dev.to




WHAT & WHY


I have a config.toml file.


In my local dev env, I have to change SERVER option value from 0.0.0.0 to localhost. I do not wanna include this change in my commit to prevent affecting prod env.





HOW


You can prevent this change from being included in your commit by using the git update-index --assume-unchanged command. This command tells Git to temporarily ignore changes to a file.


Here's how you can do it:


This will prevent Git from …

change config dev env file git localhost prod server toml value

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US