Recently Updated Pages
Inspecting a Remote
If you want to see more information about a particular remote, you can use the git remote show &l...
Pushing to Your Remotes
When you have your project at a point that you want to share, you have to push it upstream. The c...
Fetching and Pulling from Your Remotes
As you just saw, to get data from your remote projects, you can run: $ git fetch <remote&...
Adding Remote Repositories
We’ve mentioned and given some demonstrations of how the git clone command implicitly adds the or...
Showing Your Remotes
To see which remote servers you have configured, you can run the git remote command. It lists the...
Working with Remotes
To be able to collaborate on any Git project, you need to know how to manage your remote reposito...
Unmodifying a Modified File
What if you realize that you don’t want to keep your changes to the CONTRIBUTING.md file? How can...
Unstaging a Staged File
The next two sections demonstrate how to work with your staging area and working directory change...
Undoing Things
At any stage, you may want to undo something. Here, we’ll review a few basic tools for undoing ch...
Limiting Log Output
In addition to output-formatting options, git log takes a number of useful limiting options; that...
Viewing the Commit History
After you have created several commits, or if you have cloned a repository with an existing commi...
Moving Files
Unlike many other VCS systems, Git doesn’t explicitly track file movement. If you rename a file i...
Removing Files
To remove a file from Git, you have to remove it from your tracked files (more accurately, remove...
Skipping the Staging Area
Although it can be amazingly useful for crafting commits exactly how you want them, the staging a...
Committing Your Changes
Now that your staging area is set up the way you want it, you can commit your changes. Remember t...
Viewing Your Staged and Unstaged Changes
If the git status command is too vague for you — you want to know exactly what you changed, not j...
Ignoring Files
Often, you’ll have a class of files that you don’t want Git to automatically add or even show you...
Checking the Status of Your Files
The main tool you use to determine which files are in which state is the git status command. If y...
Recording Changes to the Repository
At this point, you should have a bona fide Git repository on your local machine, and a checkout o...
Getting a Git Repository
You typically obtain a Git repository in one of two ways: You can take a local directory th...