Using Git | Qt Creator Documentation
Description: {Additional Git functions.}

- Qt Creator Documentation
- How to
- Using Git
- Qt Creator 19.0.0

Subversion ◦ Apply actions to commits

# Using Git

> How to: Use Git

Git is a fast decentralized version control system. Git is available for Windows, Linux, and macOS.

You can use the Gerrit Code Review tool for projects that use Git.

## Getting started with Git

- Commit your first change
- Create VCS repositories for new projects
- Git Tools
- Initialize Git repositories
- Set up version control systems
- Use Git for Windows
- Use Git with Subversion
- Use common VCS functions

## Working with the current file

To work with the current file, go to Tools > Git > Current File.

- Show instant blame
- Stage changes
- git blame
- git diff
- git log
- git reset

## Working with the current project

To work with the current project, go to Tools > Git > Current Project Directory.

- Stage changes
- git clean
- git diff
- git log

## Working with local repositories

To work with the local repository, go to Tools > Git > Local Repository.

- Create and apply patches
- Interactive rebase
- git am
- git branch
- git clean
- git commit
- git diff
- git log
- git merge
- git reflog
- git reset
- git stash
- git status

## Working with remote repositories

To work with remote repositories, go to Tools > Git > Remote Repository.

- Review code with Gerrit
- git fetch
- git pull
- git push

### Managing remote repositories

To manage remote repositories available in Git, go to Tools > Git > Remote Repository > Manage Remotes. Double-click the names and URLs of the remote repositories to edit them.

The following table describes the supported operations.

Menu Item | Description
--- | ---
Refresh | Refresh the list of remote repositories.
Add | Add a new remote repository.
Fetch | Fetch all the branches and change information from a remote repository.
Push | Push committed changes to the remote repository.
Remove | Remove a remote repository.

See also How to: Use Git, Compare files, and Version control systems.

Subversion ◦ Apply actions to commits