- Qt Creator Documentation
- Stage changes
- Qt Creator 19.0.0

Show instant blame ◦ Use Git for Windows

# Stage changes

Stage your changes to commit them, so that you can push them to the remote repository or send them to Gerrit for review.

## Show file status

By default, Qt Creator displays the file status in the Projects, File System, and Open Documents views. The status is refreshed automatically every 10 seconds.

To customize how often the file status is updated:

1. Go to Preferences > Version Control > General.
2. Ensure Show VCS file status with refresh interval is selected.
3. Set the interval (in seconds) at which Qt Creator requests file status updates from Git.

## Stage the current file

To mark a new or modified file for committing it to the repository, stage the file in one of the following ways:

- Go to Tools > Git > Current File and select Stage <file> for Commit.
- Right-click the file in Projects or File System and select Git > Stage.
- Go to Tools > Git > Local Repository > Commit, right-click the file in Files and select Stage.

## Unstage the current file

To remove the current file from the staged changes, unstage the file in one of the following ways:

- Go to Tools > Git > Current File and select Unstage <file> from Commit.
- Right-click the file in Projects or File System and select Git > Unstage.
- Go to Tools > Git > Local Repository > Commit, right-click the file in Files and select Unstage.

## Stage chunks or lines

You can stage changes for a commit chunk-by-chunk or line-by-line in the Git Diff view.

See also How to: Use Git and Using Git.

Show instant blame ◦ Use Git for Windows