How to start working with a Git repository from TWS
In order to work with a Git repository right from The Welkin Suite, you need first of all to set up Git integration. Follow the next steps:
- Install one of the Git clients (SourceTree, GitExtensions, TortoiseGit, or etc.). You can find the whole list of the GUI Git clients at Git website. Most applications offer you to set your username and email address during the installation process. This information is used for your commits to identify you as their author.
- Select the project folder in the Git client and execute the creation of the Git repository. This creates a new subdirectory named .git that contains all of your necessary repository files.
- Create a new branch by the Git client or make an initial commit to the master branch. This action makes the first 'snapshot' of your files — it takes your working directory and turns it into a new Git repository.
For example, you can use commands like this:
cd \Users\UserName\Documents\The Welkin Suite\Projects\TestProject\TestProject git init git add --all git commit -m "Initial Commit"
NB: The file path above should be the path to your local TWS project.
- Reopen your project in the IDE and open the Version Control panel from the Main Menu:
View ⇒ Show Version Control.
After all these actions you will have full control over the changes directly from TWS.
Specifying username and email address
Usually, you specify your username and email address while you are installing Git. If you skipped this step, or if you want to change the user info, you can do this in the tab Settings, which is available from the drop-down list of the Version Control panel.
Enter the username and email address, which you want to set as a signature of the author of the commits, in the appropriate text inputs, and click the Update button.
Here you can also configure the .gitignore file.
In this section:
This also may be useful: