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 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 setup

git init [directory]
Comment

PREVIOUS NEXT
Code Example
Shell :: install django debian 
Shell :: silent install google chrome 
Shell :: how to remove remote origin from git repo 
Shell :: git delete branch upstream 
Shell :: environment variables in systemd 
Shell :: docker-compose build context tag own name 
Shell :: Simulate keys with powershell 
Shell :: update metasploit 
Shell :: how to get the files using the most storage ubuntu 
Shell :: ubuntu no internet connection 
Shell :: wsl file 
Shell :: github add image to readme 
Shell :: download docker desktop ubuntu 
Shell :: bash regex if condition 
Shell :: for shell 
Shell :: mysql_upgrade xampp 
Shell :: install kde partition manager 
Shell :: kill process on linux 
Shell :: browser sync for linux 
Shell :: encrypt files in linux 
Shell :: chmod 400 in powershell 
Shell :: how to set git password 
Shell :: kuberentes get nodes 
Shell :: pip not installing packages 
Shell :: install cherrypy 
Shell :: show processor usage linux 
Shell :: how to untrack a file in git 
Shell :: remove file from terminal ubuntu 
Shell :: conda install cairo 
Shell :: how to start xammp on linux 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =