Configuring git in Qt Creator

Can someone explain what git properties are in Qt Creator? I installed Qt Creator and git. In the "Settings" - "Versioning" tab there is a "General" tab, and there are several options: a path for checking scripts, a path to configuration files and the SSH promt command. Should I create these files myself?
On the git tab, the Prepend to path field appears. Is this the way to git? For example, "/ usr / lib / git"?
And finally, what is the command for the "repository browser"?

+6
source share
3 answers

Note that when you use mysysgit under windows, and you have not added it to your PATH, you can set the "Prepend to path" field in the git configuration as follows:

C: \ Users \ your account \ AppData \ Local \ Programs \ Git \ mingw64 \ bin \

To make git work.

+2
source

For 64-bit Windows .

  • Install Git for Windows .
  • Put C:\Program Files\Git\bin in Tools > Options ... > Version Control > Git > Priority to PATH :

enter image description here

  1. Install the local git repository in any suitable console (Git Bash) ( cd /c/project , git init , git add * , git commit , git remote add origin git@someserver :/some/path/to/project.git , git push ).
  2. Work with your project in Qt Creator using Tools > Git > Local Repository > Commit ... > Commit and Push ...

It's all. You probably want to use an SSH key without a password, because Qt Creator cannot easily handle SSH password input (and its storage). However, some third-party tools can do this for this. If you want to remove the password from your SSH key, use ssh-keygen -p .

+2
source

The General tab contains general settings for all VCS systems. By default, everything is fine, you don’t need to touch anything if it works for you. One of the settings you can change is "Wrap submit message at".

In the Git parameters, Prepend to PATH is used to set the path to Git if you do not have it on the PATH system or if you want to use the version installed elsewhere. It is mainly used on Windows, it is optional.

The repository browser is an additional executable file available through the menu Tools β†’ Git β†’ Tools β†’ Storage Browser. This is only convenience, not mandatory (I have never used it).

0
source

Source: https://habr.com/ru/post/980316/


All Articles