This page will have a sample .gitignore file that you can use to stop IguanaX from committing confidential information.
The file works like this:
Place the .gitignore file from below in your components directory.
/Users/iguanaxUser/Library/IguanaX/repos/Custom_sdh6FS3aD/
Edit the .gitignore file to include what you want to ignore:
This will ignore all the Sample data I have in the specific components directory:
Code Block /Samples/*
Make an initial commit, connect your component to a repository and make sure the specified files are not there.
...
When working in the Translator there may be certain files you do not want to track in a Git repository, such as files that may contain confidential information. A Git Ignore (.gitignore) file can be added to a Translator project to exclude files from being traced by Git.
How to create a .gitignore file to the Translator:
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Navigate to your IguanaX component repos file. You may find this in the default location: For Windows:
For Linux:
|
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
For Windows:
For Linux:
|
Expand | ||
---|---|---|
| ||
Specify the files which you want to ignore, meaning they will be excluded from your repository. You can also add exceptions to your exclusions. For example, you can add exceptions to the Samples folder if you have some sample data that doesn’t have any sensitive info that you want to keep in the component’s Git history (e.g. if it’s a template component). The following example includes an example .gitignore file for sample data:
|
Expand | ||
---|---|---|
| ||
Once you’ve created your .gitignore file, any changes you commit and push to your linked upstream repository will not contain the ignored files. You can confirm this by navigating to your Git repository and viewing the latest commits. |