Article version: Enterprise Server 2.15

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-10-16. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Using advanced Git commands

Changing author info

To change the name and/or email address recorded in existing commits, you must rewrite the entire history of your Git repository.

About Git rebase

The git rebase command allows you to easily change a series of commits, modifying the history of your repository. You can reorder, edit, or squash commits together.

Using Git rebase on the command line

Here's a short tutorial on using git rebase on the command line.

Resolving merge conflicts after a Git rebase

When you perform a git rebase operation, you're typically moving commits around. Because of this, you might get into a situation where a merge conflict is introduced. That means that two of your commits modified the same line in the same file, and Git doesn't know which change to apply.

About Git subtree merges

If you need to manage multiple projects within a single repository, you can use a subtree merge to handle all the references.

Splitting a subfolder out into a new repository

You can turn a folder within a Git repository into a brand new repository.

Ask a human

Can't find what you're looking for?

Contact us