Should I put auto backup files in my git repo?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

Should I put auto backup files in my git repo?

Post by AoF »

I did a git status and saw this:

Code: Select all

$ git st
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        deleted:    Assets/Scenes/Dialogue Database.asset
        deleted:    Assets/Scenes/Dialogue Database.asset.meta

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        Assets/Scripts/Dialogue Database (Auto-Backup).asset
        Assets/Scripts/Dialogue Database (Auto-Backup).asset.meta
        Assets/Scripts/Dialogue Database.asset
        Assets/Scripts/Dialogue Database.asset.meta

no changes added to commit (use "git add" and/or "git commit -a")
Should I be commiting that auto-backup to my git repository or should I ignore it?
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Should I put auto backup files in my git repo?

Post by Tony Li »

It's entirely up to you. On the Dialogue Editor's Database tab, you can configure the frequency at which it makes a backup copy of the database. You can also turn it off by setting the frequency to zero. The Dialogue System doesn't require the backup copy for anything. It's simply a second copy of the database asset. If something goes totally wrong while you're editing, like you delete a bunch of conversations and then realize you didn't really want to do that, you can use your backup copy.
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

Re: Should I put auto backup files in my git repo?

Post by AoF »

Ah that's great. I commit frequently, so I'll turn it off.
Post Reply