Keep files from syncing to the DataHUB
In this guide we show you how to keep files from syncing to the DataHUB. This can help to keep large intermediate, sensitive or unpublished data from uploading to the DataHUB.
The .gitignore file
Section titled The .gitignore fileEvery ARC can contain a special file called .gitignore, that typically resides in the root of the ARC. Files and folders listed in your ARC’s .gitignore will be ignored by the ARC’s version control system. That means changes to those files will not be tracked by ARC tools (e.g. ARC Commander or ARCitect) nor will the files be synced to the DataHUB.
Adding .gitignore
Section titled Adding .gitignoreYou can create and add a new .gitignore file via any simple text editor or via ARCitect.
A default .gitignore that includes typical hidden system and temporary files can be downloaded here.
Adding files to .gitignore
Section titled Adding files to .gitignore- Open your ARC in the ARCitect or in your File Explorer (Windows) or Finder (macOS)
- Add a new file
my-personal-notes.txtor folderintermediate-resultsto the ARC - Open
.gitignorevia ARCitect or a text editor.- Add a new line
my-personal-notes.txtorintermediate-results/at the end of the file - Save and close the file.
- Add a new line
- Sync the ARC via ARC commander or ARCitect.
- Check your ARC in the DataHUB, to see that the file
my-personal-notes.txtor folderintermediate-results/does not exist there.
Allowing files to sync
Section titled Allowing files to syncIf at some point you want the ignored file or folder to sync, you can simply remove the respective line from your ARC’s .gitignore file.