Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git setup


$ git config --global user.name "Your Name"
$ git config --global user.email "you@youraddress.com"
$ git config --global push.default matching
$ git config --global alias.co checkout
$ git init

Comment

git setup

#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 johndoe@example.com
git config --global init.defaultBranch main
Comment

Git global setup

git config --global user.name "lakshan wijerathne"
git config --global user.email "lakshan.wijerathne@arimaclanka.com"
Comment

git setup

## 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
Comment

git local setup

git config --global user.name "Tanju Gümüs"
git config --global user.email "tanju.guemues@x-cell.com"
Comment

Git setup

git init [directory]
Comment

PREVIOUS NEXT
Code Example
Shell :: push to github from terminal 
Shell :: rust dockerfile 
Shell :: find logs in kubernetes pods 
Shell :: Server unable to read htaccess file 
Shell :: publish website locally 
Shell :: install laravel on ubuntu 
Shell :: how to remove git from ubuntu 21 
Shell :: npm vs yarn command 
Shell :: create new file terminal 
Shell :: how to install cuda on ubuntu 20.04 
Shell :: kubeadm get discovery-token-ca-cert-hash command openssl 
Shell :: convert vmdk to qcow2 
Shell :: suicide linux 
Shell :: download single file from github 
Shell :: how to create hotspot in kali linux terminal 
Shell :: linux install icloud 
Shell :: gulp-gzip 
Shell :: git delete stash 
Shell :: echo in red color linux 
Shell :: run typescript compiler 
Shell :: batch file if statement 
Shell :: restore git stash 
Shell :: restore staged github 
Shell :: removing letstencrypt from domain 
Shell :: open directory windows command 
Shell :: How to Install & Run CodeIgniter Framework 
Shell :: flask wtforms pip install 
Shell :: install old firefox version ubuntu 
Shell :: mac shell prompt 
Shell :: pip install ssh with yes 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =