Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles  

 :) Latest Topic
Git Tutorial
What is Git?
Features of Git
Benefits of Git
Why use Git?
GitHub Introduction
GitHub Features
GitHub Benefits
Git vs GitHub
Git vs SVN
Git vs Mercurial
Version Control System
Distributed Version Control
Install Git on Windows
Install Git on Linux
Install Git on MAC
Git Environment Setup
Git configuration levels
Git Tools
Git Third Party Tools
Git Terminology Part1
Git Terminology Part2
Git Commands Part1
Git Commands Part2
Git Commands Part3
Git Cheat Sheet
 


  

 
Git Environment Setup
Question Posted on 07 May 2023

Home >> Tutorial >> Git Tutorial >> Git Environment Setup


Git Environment Setup

Git Environment Setup


When we say about the environment setup of Git. Environment of any of the tool consists of elements which support execution with software, hardware and network configured. And this will includes OS settings, software configuration, test terminals, software configuration, and other support to perfom the operations. And it is an essential aspect of any software.

And this will help you to understand how to set up Git for first use on various platforms so you can read and write code in no time.


The Git config command


Here Git supports a command which is called "git config" which lets you get and set configuration variables which control all facets of how Git looks and operates. And is is used to set Git configuration values on a global or local project level.

Setting "user.name" and "user.email" are the necessary configuration options as your name and email will show up in your commit messages.


Setting username

Username is very important here in Git and this username is used by the Git for each commit.

$ git config --global user.name "Bharti Gogia"


Setting email id

EmailId is very important here in Git and this email is used by the Git for each commit.

$ git config --global user.email "bhartigogia4u@gmail.com"

There are many other configuration options that the user can set.


Setting editor

Here Git will provide some editors options. Here you can set the default text editor when Git needs you to type in a message. And if you have not selected any of the editors, Git will use your default system editor.

And if you want to change or to selct different text editor you can use Vim. And below is the command to do that.

$ git config --global core.editor Vim


Checking Your Settings

You can check your configuration settings and you can use the "git config --lis"command to list all the settings which git can find at that point.

$ git config -list

And above command will list all your settings. And below is the output for above command:-

Output


BhartiGogia@BhartiGogia-PC MINGW64 ~/Desktop

$ git config --list

core.symlinks=false

core.autocrlf=true

core.fscache=true

color.diff=auto

color.status=auto

color.branch=auto

color.interactive=true

help.format=html

rebase.autosquash=true

http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt

http.sslbackend=openssl

diff.astextplain.textconv=astextplain

filter.lfs.clean=git-lfs clean -- %f

filter.lfs.smudge=git-lfs smudge --skip -- %f

filter.lfs.process=git-lfs filter-process --skip

filter.lfs.required=true

credential.helper=manager

gui.recentrepo=C:/Git

user.email=Bhartigogia4u481@gmail.com

user.name=Bharti Gogia




You can customize your Git output to view a personalized color theme. The "git config" can be used to set these color themes.

Color.ui

$ Git config -global color.ui true

When we say about the default value of color.ui is set as auto, which will apply colors to the immediate terminal output stream. You can set the color value as true, false, auto, and always.
Git Environment Setup,Git Config,Git config -global color,Git COnfig color





Other Important Questions
Git Third Party Tools
What is Git?
GitHub Introduction
Features of Git
GitHub Features







 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |