Setup git in Qt Creator

For 64-bit Windows.

  1. Install Git for Windows.
  2. Place C:\Program Files\Git\bin in Tools > Options... > Version Control > Git > Prepend to PATH:

enter image description here

  1. Setup your local git repository in any suitable (Git Bash for example) console (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 via Tools > Git > Local Repository > Commit... > Commit and Push...

That's all. Probably you'll want to use passwordless SSH key, because Qt Creator can't easily handle SSH password entering (and storing). Some third-party tools can be used for that. If you want to remove the password from your SSH key, use ssh-keygen -p.


Note that when you are using mysysgit under windows, and you have not added it to the PATH, you can set the "Prepend to path" field in the git configuration to this:

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

In order for git to work.

Tags:

Git

Qt Creator