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:
- Go to Preferences > Version Control > General.
- Ensure Show VCS file status with refresh interval is selected.
- 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.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.