forked from flashreads/blogs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new file in git for using git first time
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
id: 009-git-installation.md | ||
title: Git Installation | ||
tags: | ||
- Git | ||
- Github | ||
- Git First Time | ||
- Git Installation | ||
author: Sid-Lais | ||
meta-description: Git for first time | ||
date: 2021-10-11 08:30:00 +0100 | ||
keywords: Git, Github | ||
template: post | ||
categories: | ||
- git | ||
--- | ||
|
||
# Git Installation | ||
Before working on Git repositories it is advised to get a good knowledge of Git. Git is an open source version control system. It is easy to learn and has very fast performance irrespective of the system. | ||
|
||
## Steps to install Git | ||
|
||
1. Download and install [Git](https://git-scm.com/) for your system. | ||
2. After installation open a terminal in your system and write **git** to check proper installation. | ||
<br> | ||
If it returns something like this below then congrats. *Git has been installed*. | ||
<img src="https://user-images.githubusercontent.com/40291960/136825925-cfeccd43-78a9-4eb1-a485-00b9110fc4be.png" height=300> | ||
|
||
## Set up Git credentials | ||
|
||
1. In the terminal/shell type: | ||
|
||
```bash | ||
git config --global user.name "Your name here" | ||
git config --global user.email "[email protected]" | ||
``` | ||
These will configure the git to set your name and email as default. | ||
|
||
You can also add(optional): | ||
|
||
```bash | ||
git config --global color.ui true | ||
git config --global core.editor emacs | ||
``` | ||
|
||
The first command is to enable colors in the terminal which are used to better understand the current state of the code. | ||
|
||
The second command is to change the default text editor to emacs. You can change "emacs" to any other text editor desired. | ||
|
||
## For more information refer to [GitHub Docs](https://docs.github.com/en/get-started/quickstart/set-up-git) |