dibaloke
3/26/2019 - 1:58 PM

Git Command line Fundamental

Git Download

Git Download link

Check Version

    git --version

Set Config file username and email

git config --global user.name "Dibaloke Chanda"
git config --global user.email "dibaloke66@gmail.com"

See Config file

git config --list

Help Commmand

git help onfig
git config --help

Intialize Repo

git init

Check Status of Staging Area

git status

Check log of commit with message

git log

Add all files to staging area

git add -A

Add Specific files to staging area

git add m.py hello.py pubspec.yml .gitignore

Reset or pull all files from staging area

git reset

Reset or pull specific files from staging area

git reset m.py hello.py pubspec.yml .gitignore

Commit files from staging area with message

git commit -m "Intial Commit"

Clone Remote Repo to current directory

git clone https://github.com/tiagojencmartins/unicornspeeddial.git .

Get Information about Cloned Remote repo

git remote -v
git branch -a

Show Changes made to the code

git diff

Add and push to remote repo

git remote add origin https://github.com/dibaloke/Measurment-lab-Project.git
git pull origin master
git push -u origin master