GIT

Cheatsheet: GIT

Git: Important commands

cls
dir
git config --global user.name
git config --global user.email
code .
git init
ls -lart
touch
git add -A



git clone https://github.com/gauravrjoshi/laravel_project.git
git checkout master
git checkout branch1
git status
git add .
git status
git commit -m "commit message"
git push origin branchname
git checkout branch1
git pull origin branch1
git pull origin branchname
git push origin branch1

 

Git local configuration

git config --local user.email "[email protected]"
git config --local user.name "User Name"
git config --local credential.helper ""

 

Checking Your Settings

git config --list

https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control

Leave a Reply

Your email address will not be published.