Getting Started

Download & installation

Download the git command-line client from the website: https://git-scm.com/downloads

Configure Git so it remembers passwords

> git config --global credential.helper wincred
> git config --global credential.helper cache

Configure your name and email address

The following sets your name and email address as they will appear in commit logs.

> git config --global user.name "Jane Doe"
> git config --global user.email jane.doe@example.com

Make use of aliases

You can set up short aliases for common git commands, for example:

> git config --global alias.co checkout

The above would allow you to write git co <branch> instead of git checkout <branch>.

Set safe push model

> git config push.default simple

View your current configurations

> git config --list
Pinterest
Reddit
Hacker News

You may be interested in...

Hackification.io is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. I may earn a small commission for my endorsement, recommendation, testimonial, and/or link to any products or services from this website.

Comments? Questions?