Using Git - GitHub Docs
Skip to main content

Using Git

Use Git to manage your GitHub repositories from your computer.

About Git

Learn about the version control system, Git, and how it works with GitHub.

Pushing commits to a remote repository

Use git push to push commits made on your local branch to a remote repository.

Getting changes from a remote repository

You can use common Git commands to access remote repositories.

Dealing with non-fast-forward errors

Sometimes, Git can't make your change to a remote repository without losing commits. When this happens, your push is refused.

Splitting a subfolder out into a new repository

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

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.

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.

Dealing with special characters in branch and tag names

Git is very permissive about what characters are allowed in branch and tag names. When using Git from a command-line shell, you may need to escape or quote special characters.

Troubleshooting the 2 GB push limit

Learn how to work around the 2 GB push limit.

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.