Anchor |
---|
| _Toc356829642 |
---|
| _Toc356829642 |
---|
|
Anchor |
---|
| _Toc492900242 |
---|
| _Toc492900242 |
---|
|
Share the Project with the Git Repository
- Right-click on a project, then select Team > Share Project.
- Select the Git option, then click Next.
- Configure Repository: Click Create, enter the directory path and name for the local repository, then click Finish.
...
Anchor |
---|
| _Toc356829643 |
---|
| _Toc356829643 |
---|
|
Anchor |
---|
| _Toc492900243 |
---|
| _Toc492900243 |
---|
|
Configure the Git Ignore File
Ctrl-right-click on the project folders to ignore, then select Team > Ignore.
You can then edit your .gitignore file to look like the following. The file will be located in your Datical DB project working directory.
Code Block |
---|
|
Logs/
Reports/
Snapshots/
Profiles/
.auditdb/
/.classpath
/.metadata
/.reporttemplates
/daticaldb.properties
/daticaldb*.log
*.zip
|
- Commit your changes. Ctrl-right-click the folders, then select Team > Commit. Be sure to select all the necessary files to commit.
Anchor |
---|
| _Toc356829644 |
---|
| _Toc356829644 |
---|
|
Anchor |
---|
| _Toc492900244 |
---|
| _Toc492900244 |
---|
|
Add Remote Git Repository
Now that the project is synchronized with a local Git repository, you need to configure the repository to point to a remote Git repository.
- Click Open Perspective, then select Other.
- Choose the Git Repository Exploring option and click OK. Then expand your local Git repository, right-click on the Remotes option, and select Create Remote.
- Choose a name for your remote and click OK. Click Change button to add the URI link to your remote Git repository. Fill out the necessary credentials, then click Finish.
- Click Advanced to fill out the push specifications. In this example the Add All Branches Spec button was selected but you can select exactly what you want to push to the remote Git repository as needed. Click Finish when done selecting options.
- You can use the Dry Run button to test pushing to the remote Git repository if you wish, otherwise click Save. Be sure to review the remote options and that you configure both the Push and Fetch options appropriately.
Push to the Remote Repository
- Return to Datical DB and refresh your workspace.
- Push your local repository to the upstream respository.
- Verify your changes in the remote repository.