[ros-users] [Discourse.ros.org] [Quality Assurance] To avoid undesired change in .rviz

Nikolaus Demmel ros.discourse at gmail.com
Thu Oct 4 14:39:56 UTC 2018





[quote="barulicm, post:2, topic:6270"]

Id suggest you go with your first proposed solution. Files captured by gitignore rules can still be managed by git. For most people, the incidental changes they make will properly be ignored. If someone has a real change to the .rviz file that needs to be added, they can run

`git add -f <path to file>`

to force git to add the file despite the gitignore rules.



This is nice as its a source control solution to a source control problem. More generally, this solves the problem of I need to distribute this file, but everyones customizations to this file should not be carried back upstream.

[/quote]



Just a note, AFAIK this is not how it works. Ignored files don't show up as "untracked", but once you add them with `git add -f`, any subsequent changes are shown regardless of .gitignore like for any other file in the repo.



I don't have a good solution unfortunately...











---

[Visit Topic](https://discourse.ros.org/t/to-avoid-undesired-change-in-rviz/6270/3) or reply to this email to respond.









More information about the ros-users mailing list