Using Source Control in your Gitpaces
Using the Supported Source Control Management Tools
For CDEs we use platform OAuth to connect with your git providers so you don't need to login to configure the CLIs, but since we use VS Code as IDE it only comes with pre-installed GitHub CLI, and we need to install the CLIs for other git providers.
- Using GitHub Repositories
- Using GitLab Repositories
- Using Bitbucket Repositories
GitHub CLI comes pre-installed with VS Code IDE, now you need to configure your email-id and user-name before you could start pushing changes to upstream.
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
-
Install the glab CLI.
-
Authenticate the user.
- Follow the steps described here to configure Bitbucket.
Commit Changes to Upstream
-
Once you've made a few changes, you can use the integrated terminal or the source view to commit your work. Here are the steps to use the Source Control view for this example.
-
To stage your changes, click + next to the file to stage the changes, or next to Changes if you've changed multiple files and you want to stage them all.
-
To commit your staged changes, type a commit message describing the change you've made, then click Commit.
-
Now Sync Changes, it will redirect you to login and authorize to your Source Provider once the authentication is successful, your changes will be committed to your fork.
-
And that’s it! You have successfully used Harness Cloud Development Environments for development