Git commands one should know !
git branch -d branch_name
Git status gives information about the branch & files
To check push/fetch origin URL
To gets the updates from remote repository and immediately applies the latest changes in your local.
git pull origin main/master
We need to specify the hash code ( eg. 3321844 ) next to our commit that we would like to undo
git mv old_file_name new_file_name
Temporarily stores your modified files
Apply a stash to a branch
To see all the previous commits
Most recent will appear first
To see commits of other group authors.
To see details about a specific commit
git show your_commit_hash_code
To delete tracked file from the current directory
To merge a specific branch feature to your directory
To integrates two branches into a single branch.
To find a good/bad commit
To know about a good commit
To know about a bad commit
To apply a commit from any branch and apply it to any other branch
git cherry-pick commmit_hash_code
To compare working directory with the local repo
git diff source_branch target_branch
There are many commands in Git
Use the following command in the terminal to check other Git commands