Adding Git to an Existing Workbench Project
You can link existing Workbench projects to central Git repositories to enable Git version control functionality on your projects without having to start a new project.
Prerequisite: To link an existing Workbench project to Git, a central Git repository must exist. The central repository is set as the upstream origin, which makes it the location where data can be pushed to or pulled from. To create your Git repository, see Getting Started with Git.
-
Navigate to your existing Workbench project.
-
Click Tools > Version Control > Commit.
The
Commit dialog box appears. -
Select the files that you would like to commit. Enter a description.
-
Click OK.
-
In the Main Window Space status bar, click
Git Console. -
Enter git remote add origin <url> where <url> is the HTTP URL or file system address for the central repository.
-
Press Enter.
The central repository is set as the originating repository. -
Enter git push --u origin master.
-
Press Enter.
Your Workbench project is pushed to the central repository, and the central repository is set as the location for all commits and pushes for this project.