# Git Cofiguration on local system to use Gitlab
###### tags: `Devops` `gitlab`
Git is a SCM (source code management).
Gitlab is a web based repository that offer free open and private repositories, issue-following and wikis.
It is a complete DevOps platform that allow teams to collaborate and build better software.
## Why to use gitlab:
Gitlab enables collaboration among a team of developer with the gitlab Flow.
Built in CI/CD funcationality.
It can integrate with other tools.
## Download git from https://www.git-scm.com and install and open the git Bash(git terminal)
## Basic Git Command
```javascript=
# git --version
```
## Add the username and email
```javascript=
# git config --global user.name "sohailanjum97"
# git config --global user.email "sohail.eic06g@nctu.edu.tw"
```
## check the Added the username
```javascript=
# git config --global user.name
# git config --global user.email
```

## To Check username, email and password:
```javascript=
# git config --global --list
```

## Create a demo project/folder & add to git.
## Goto cmd or GitBash cd to the location of the folder and run follow.

## Now init the git
```javascript=
# git init
```

## When we initalize the git, the folder will created (The hidden items should be visible)

## Show all the files and folders: (Create the file ReadMe.txt in the folder)
```javascript=
# git status
# gir commit -m "commit message"
```

commit the file.

ReadMe.txt Green color means the file is ready to commit.
## Push the file to gitlab.
```javascript=
# git add .
# git push -u "https://gitlab.com/sohailanjum97/cicd-pipeline" master
```


## Some Helpful Commands
```javascript=
# git config --global --replace-all user.name "Your New Name"
# git config --global --replace-all user.email "Your new email"
# git config --global --unset user.name
# git config --global --unset user.email
# git config --global --edit
```