👩‍🏫 Courses
👩‍💻About

Common Command

git --version Checking installed git version

git config user.name Checking Configuration - Name

git config user.email Checking Configuration - Email

git config --list List existing configuration

git status To check current status of Git repository

git remote Checking remote (i.e origin. Origin is where the repo is located on Github)

git remote -v Checking more details about remote

git init Initializing a new repo

git add . To add all files to staging on local machine

git commit -m "Commit" Adding commit

git log Log of all file changes

git config --global alias.s status Defining alias

git diff Shows if there are changes in file

git push To push the changes

git add -am "Comment" Add and comment a file