Page 1 of 1

Should I put auto backup files in my git repo?

Posted: Wed May 22, 2019 10:59 pm
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?

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

Posted: Wed May 22, 2019 11:21 pm
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.

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

Posted: Thu May 23, 2019 7:30 pm
by AoF
Ah that's great. I commit frequently, so I'll turn it off.