How to Work with Scripts in Git

The following steps describe the workflow of how to work with Vuser scripts and a Git repository. For an overview of the GitHub integration, see Managing Scripts with Git - Overview.

  1. Open or create a Git repository script in VuGen

    • For a local script not part of a Git Repository:
      Create or open a local script in VuGen. Click the parent level of the script in the Solution Explorer and select Git > Create Local Git Repository. The Track Script dialog box opens. Accept the default gitignore content, or click Configure Ignore List to edit the list or use an external file. For details, see Configure Ignore List Dialog Box. After you edit the ignorelist, click Track.
    • For a script stored in a Git Repository: Download the script from the Git repository.
      Select Version Control > Git Options > Import from Remote Repository. Specify the repository information and click Import. The script opens in the VuGen editor. For details, see Import from Remote Repository Dialog Box.
  2. Edit the script

    Edit or record the script as you would any other script.

  3. Perform a Pull operation (optional)

    Click the parent level of the script in the Solution Explorer and expand the Git entry from the right-click menu. Select Pull to retrieve the updated files from the Git repository. For details, see Git Operations. If there are conflicts between the files, VuGen opens the Resolve Conflicts Dialog Box.

  4. Commit the changes

    Save the file in VuGen. Click the parent level of the script in the Solution Explorer and select Git > Commit… from the right-click menu. In the Commit Changes dialog box, specify the change's details and click Commit.

  5. Push the changes to the Git repository

    Click the parent level of the script in the Solution Explorer and expand the Git entry from the right-click menu. Select Push to send the changes to the Git repository. For details, see Git Operations. If there are conflicts between the files, VuGen opens the Resolve Conflicts Dialog Box.

  6. Track or untrack scripts (optional)

    To disable tracking for a script, click its parent level in the Solution Explorer and select Git > Untrack Script. To re-enable tracking, select Git > Activate Script Tracking.

For additional options, such as undoing changes or viewing history, see Git Operations.

Back to top

Troubleshooting

If you are unable to perform push, pull, or import operations:

  • Make sure you have an active Internet connection.

  • Make sure that a proxy server is not blocking the connection. Configure the Git machine to allow access via your proxy server. For details, see the Git documentation.

If you push to a remote repository and then change the connection to use a second remote repository, and push the commits to that second repository, the push fails. To push to the second repository:

  1. Change the connection to point to the second repository.
  2. Perform a new commit.
  3. Push to the new repository.

Back to top