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

setup git project

echo "# HomeFinder" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/Ster1402/HomeFinder.git
git push -u origin main
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 :: snap install clion 
Shell :: factorial of a number bash 
Shell :: view git stash without applying 
Shell :: ip on mac 
Shell :: install opera ubuntu terminal command 
Shell :: installing xournal++ in ubuntu 
Shell :: django allauth 
Shell :: install angular animation 10.0.12 
Shell :: pip install boto3 
Shell :: django-cors-headers 
Shell :: ubuntu check php status 
Shell :: how to install laravel on mac 
Shell :: npm installation in mac 
Shell :: check git current branch 
Shell :: vlc popos 
Shell :: install wkhtmltopdf mac 
Shell :: kubectl scale --replicas to 0 
Shell :: linux show groups 
Shell :: test nginx config mac 
Shell :: install pymongo 
Shell :: gitignore committed file 
Shell :: centos cpus 
Shell :: Homebrew PHP appears not to be linked. Please run [valet use php@X.Y] 
Shell :: how completely remove kde 
Shell :: git remove branch 
Shell :: force install npm 
Shell :: mysql2 installation 
Shell :: brew service start redis 
Shell :: linux show number of cores 
Shell :: how to unzip tar file 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =