To use a version control system in DataGrip, install the corresponding plugin:
Use the VCS Operations Popup (Alt+` or ) to quickly invoke any VCS-related commands. The list of actions in the popup depends on the currently enabled VCS.
You can also use the following shortcuts to invoke global version control commands:
VCS Operations Popup...
Show Version Control window