reading-notes

View the Project on GitHub Abu-laban/reading-notes

Getting Started

Download Git

In order to use Git, your computer must have it available. If you already have Git on your computer, you should make sure you have the latest version.

Mac OS X

Windows

Linux

Graphical Clients

Initial Customization

Configuration of Variables

An inherent Git tool called

git config

allows the setting of configuration variables that control aspects of Git’s operation and look.

Identity Setting

After installing Git, users should immediately set the user name and email address, which will be used for every Git commit.

git config –global user.name “Jane Smith” git config –global user.email “example@email.com”

git config –global user.name (should return Jane Smith) git config –global user.email (should return example@email.com)

By using the global option, these Git settings apply to anything on the system. To use different identity settings for a specific project, change the working directory to the desired local Git repository and repeat the steps above without using –global.

Default Text Editor

$ git config –global core.editor emacs

Note: For some editors, you may need to find specific instructions for default configuration.

Check Settings

To check settings, use the

git config –list command.

Example:

$ git config –list user.name=Jane Smith user.email=example@email.com color.status=auto color.branch=auto color.interactive=auto …

Getting Help

There are three ways to get more information on a particular command, by accessing the manual:

git help command git command –help man git-command