Version Control

Version Control

Integrated, visual version control across your project.

Working with version control systems (VCS) such as Git, Mercurial, and others is an integral part of development. Our IDEs put a common abstraction atop each system, then puts a visual face on all your VCS activities.

See Also

tip

Interactive rebase
Using interactive rebase in IntelliJ IDEA

tip

Selectively commit changes
Selectively Commit Changes to a File

tip

Annotate with Git Blame: Show Diff
Look at the diff a change was part of from Annotate with Git Blame

tip

Annotate with Git Blame: Commit
Look at the commit a change was part of from Annotate with Git Blame

tip

Local History
Search text in Local History

Part of tutorial

Introduction
Importing a project into IntelliJ IDEA

Part of tutorial

Summary and Shortcuts
Importing projects into IntelliJ IDEA Summary

Part of tutorial

Project from version control
Cloning a project from version control

tutorial

GitLab Merge Requests
Working with GitLab Merge Requests

tutorial

Contributing to open source software; creating a pull request
Contribute code to someone else's GitHub project with a pull request

Part of tutorial

Introduction
Contributing to open source software

Part of tutorial

Making changes to code
Making and committing our changes

Part of tutorial

Negotiating the review process
Review and hopefully get your pull request merged

Part of tutorial

Creating the pull request
How to create a pull request on GitHub

Part of tutorial

Getting the project
Forking and cloning the project

Part of tutorial

Summary and Shortcuts
Contributing to open source software Summary

tip

Resolve Conflicts
Let the IDE help in the tricky business of resolving merge conflicts.

tip

Move Work Aside With Stash
Use git's stash to move uncommitted work aside temporarily.

tip

Move Work Aside With Shelve
Move uncommitted work aside when you need to work on another branch.

tip

Rebase Feature Branch
Get your feature branch caught up with changes on the main branch.

tip

Autocomplete File Names in Commits
How to reference filenames in a commit in WebStorm.

tip

Compare With Branch
See the changes in another branch's commits.

tip

See Unsynced Commits
See what's happening on that other branch.

tip

Clone project from GitHub
Clone a project from the IntelliJ IDEA welcome screen

tip

Browse Branch's Commits
Review the changes in main before bringing them to your branch.

tip

See VCS Changed Lines In Gutter
Quickly spot which parts of your file have changed since the last commit.

tip

Only Commit Some Changes
Unselect files or changed regions within files during the commit process.

tip

Fix Your Work with Amend Commit
Put some missing work back into your last commit, before you push.

tutorial

Marco Codes - Git
5 Git Tricks you need to know

tip

Use Local History to Avoid Disaster
Use the IDE's built-in history facility to recover changes when VCS can't help you.

tip

Undo Last Commit
Undo a commit... without misery.

tip

Undo Last Commit
Undo a commit...without misery.

tip

Undo Last Commit
Undo a commit...without misery.

tip

Undo Last Commit
Undo a commit...without misery.

tip

Edit Commit Message
Edit the wording in your last commit message, after you committed.

tip

Undo Last Commit
Undo a commit...without misery.

tutorial

Git interactive rebase
How to clean up your Git commit history with Git interactive rebase

tip

Navigating a Long Class
There are various tips and tricks you can use to navigate a long class in IntelliJ IDEA

tip

Manage VCS Changelists in IntelliJ IDEA
Group and commit changes related to certain tasks

tutorial

Creating a Project from GitHub
How you can create an IntelliJ IDEA project from your code in GitHub

tutorial

Sharing your Project on GitHub
How you can share a local project to GitHub

tip

Resolve Merge Conflicts in VCS
Use VCS options in IntelliJ IDEA to resolve merge conflicts visually in the editor

tip

Search text in Local History
Find exactly what you are looking for, even if you removed it

tip

Cleanup code before commit
Remove all the redundant parenthesis and other unneeded code before commit

tip

Run inspections before commit
Catch all issues before your code reaches the upstream

tip

Run tests before commit
Make sure your tests pass before reaching the CI/CD pipeline

tip

Sign Git commits with GPG keys
Improve the security of your commits by using GPG keys

tip

Commit Changes
Commit your changes to VCS

tip

Monitor Incoming and Outgoing Commits
Want to know if your branch has new commits? Here's how.

tip

Use a lightweight inspection profile on commit
Fully customise the checks you must perform before you commit your changes to version control

tip

Enable Git Staging
Git Staging is an alternative approach to IntelliJ IDEA Changelists

tip

Create a Project from GitHub
Let GoLand do the work to clone and set up a project hosted on GitHub.

tip

Put New Project Under Version Control
The fastest way to register a new project directory under local version control.

Part of tutorial

Version Control in Rider
Working with Git, commit code, rebase and switch branches. Let's explore version control (VCS)!

tip

VCS Operations Quicklist
Your next VCS action at hand!

tip

Create a Project from GitHub
Let PyCharm do the work to clone and setup a project hosted on GitHub.

tip

Put New Project Under Version Control
The fastest way to register a new project directory under local version control.