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 :: install emacs 
Shell :: install vim in alpine 
Shell :: linux folder size 
Shell :: cannot delete branch checked out at 
Shell :: install mdx for nextjs 
Shell :: shell file automation 
Shell :: npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli 
Shell :: how to get kafka version 
Shell :: bash try catch 
Shell :: count occurrences of word in file linux ignoring case 
Shell :: conda install tesseract 
Shell :: redis-cli port host 
Shell :: magento 2 gulp 
Shell :: svelte install 
Shell :: dd write iso to usb linux 
Shell :: android check if package is installed 
Shell :: installing pipewire 
Shell :: change owner of all the files from a directory linux 
Shell :: Unable to create directory wp-content/uploads/. Is its parent directory writable by the server? 
Shell :: How to Install Google Chrome on Centos 8 
Shell :: add root user kali linux 
Shell :: bash htop 
Shell :: How to push code to your github repository using token authentication 
Shell :: ls human readable size 
Shell :: Install docker with apt command 
Shell :: port already in use 8000 
Shell :: az login acr -n 
Shell :: see number of documents in mongodb collection 
Shell :: find and delete files with extension linux 
Shell :: install tailwind expressjs 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =