Git Setup

[Solved] Git Setup | Shell - Code Explorer | yomemimo.com
Question : Git global setup

Answered by : lakshan-wijerathne

git config --global user.name "lakshan wijerathne"
git config --global user.email "[email protected]"

Source : https://gitlab.com/LakshanWijerathne1234/test_8 | Last Update : Wed, 25 May 22

Question : git setup

Answered by : drab-dugong-c64u1r3nv5u1

## set your git name and email
git config --global user.name "your username"
git config --global user.email "your email"
## then try to clone a repo
git clone <git-repo-url>
## after that if you are not loged in then git will ask for username and password
## provide the username and password (use personal access token insted of password)
## If you want to avoid providing a username and password every time, you can just store that username and password.
git config --global credential.helper store
## you can check the configaretion with this command
nano ~/.gitconfig
## The username and password will be saved in the file ~/.git-credentials. in the format
nano ~/.git-credentials
## You can also opt for cache to store the username and password instead of disk.
git config --global credential.helper cache

Source : | Last Update : Fri, 29 Jul 22

Question : git local setup

Answered by : thoughtless-tapir-w8d2f8ug2o1e

git config --global user.name "Tanju Gümüs"
git config --global user.email "[email protected]"

Source : https://gitlab.x-cell.local/azubis/tg/battleshiptwo | Last Update : Fri, 09 Jul 21

Question : Git setup

Answered by : zany-zebra-orwwbipv990w

git init [directory]

Source : https://phoenixnap.com/kb/git-commands-cheat-sheet | Last Update : Wed, 13 Apr 22

Question : git setup

Answered by : laya-godfrey-cleement

#view all settings
$ git config --list --show-origin
#set global configurations for your git
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
git config --global init.defaultBranch main

Source : https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup | Last Update : Sun, 02 Oct 22

Answers related to git setup

Code Explorer Popular Question For Shell