Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which reporting services file types are safe to ignore on git?

I looked this up and almost every answer linked to a gitignore repository or a website. However, upon inspection I've found that it doesn't ignore files that I'm having problems with.

The files in question are:

  • PROJECTNAME .rds
  • Reports .rptproj.user
  • Reports .rptproj.rsuser
  • .smss_suo

Which of these files are safe to ignore? Which are not? And for what reasons?

Thanks!

like image 462
Nimchip Avatar asked Nov 02 '17 13:11

Nimchip


People also ask

What files should be ignored in Git?

Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are: dependency caches, such as the contents of /node_modules or /packages. compiled code, such as .o , .

Which type of files do not belong to Git?

Files that don't belong to the project Files like . DS_Store (for Mac OS), Thumds. db (for Windows), . vscode (for code editors) have nothing to do with your project.

Which file in your Git repository can you use to avoid that certain file types are commited?

Use a global gitignore file A global . gitignore file helps ensure that Git doesn't commits certain file types, such as compiled binaries, in any local repo.

Which command is used to ignore the files which are not tracked in Git?

gitignore is a file in your git root directory. Add the name patterns for the files that you want to ignore, and the files will be ignored automatically. It is the directory where you used git init .


1 Answers

This totally depends on what you want to track in source control. I'd say typically files prefixed with a "dot" are safe to ignore/exclude from source control.

Some of your files contain the word "user" which would imply they're user-specific files and shouldn't be committed; otherwise, each user would likely have diff changes for these files each time they worked on the project, which probably isn't what you want. I see one file has "suo" which is a Visual Studio convention for "solution user options", and the same logic applies there too.

I'd assume you want to track PROJECTNAME.rds in source control, and you wouldn't want to track the others.

like image 107
Taylor Wood Avatar answered Nov 15 '22 04:11

Taylor Wood