Top Most GIT Hub Commands
The top most GitHub commands:
git clone: Clones a repository from GitHub to your local machine.
git add: Adds changes to the staging area.
git commit: Commits changes to the local repository.
git push: Pushes changes from the local repository to the remote repository on GitHub.
git pull: Pulls changes from the remote repository on GitHub to the local repository.
git branch: Lists, creates, or deletes branches.
git checkout: Switches between branches or restores files from a previous commit.
git merge: Merges changes from one branch into another.
git fetch: Fetches changes from the remote repository on GitHub without merging them.
git status: Shows the current status of the repository, including any changes that have been made.
git log: Displays a list of all the commits made to the repository.
git tag: Creates or lists tags (i.e. named versions) of the repository.
git stash: Temporarily saves changes that are not ready to be committed.
These commands are just a few of the many powerful tools available in Git and GitHub. Learning how to use them effectively can help you to be more productive and efficient in your development workflow.
Subscribe to my newsletter
Read articles from Sawan Kumar Jha directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Sawan Kumar Jha
Sawan Kumar Jha
Hi there, this is Sawan Kumar Jha a Tech Enthusiastic