Cheat sheet for GitHub commands
Top Git commands to use in gitbash
git status
gitstatus is used to check whether the current folder has git instance or not
git status
git init
git init command is used to initialize the git in the current folder
git init
git config
git config is used to configure the git account
git config --global user.name <your name>
git config --global user.email <your email>
git add
git add is used to add the remote files to the github repository
git remote add origin https://github.com/Anushadokuparthi/testing.git
git commit
git commit is used to save all the local changes in your working repository. On important note with every commit it is mandatory to add the commit message which is relevant to thechanges
git commit -m "first commit"
git push
git push is used to the committed changes to the git repository
git push -u origin main
git pull
git pull is used to pull the latest changes from the master repository
git pull local
git log
git log is used to see the previous commit changes, merge changes and pushe history of the repository
git log
Subscribe to my newsletter
Read articles from Anusha Dokuparthi directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by