Git/GitHub Advance Commands

Git is a version control system that helps track code changes, manage versions, and enable collaboration among developers. GitHub is an online platform that hosts Git repositories, allowing you to store code in the cloud and collaborate with others. Command Description git diff Shows the difference between modified files and the last committed version. git log Displays a list of all commits made in the repository’s history. git clone Creates a local copy of a remote Git repository. git pull Fetches and merges changes from a remote repository into your current branch. git push Uploads your local commits to a remote repository. git blame Shows who made each line change in a file and when. git merge conflict Occurs when Git can't automatically merge changes; requires manual fix. git branch Lists, creates, or deletes branches in the repository.

Apr 25, 2025 - 17:24
 0
Git/GitHub Advance Commands

Git is a version control system that helps track code changes, manage versions, and enable collaboration among developers. GitHub is an online platform that hosts Git repositories, allowing you to store code in the cloud and collaborate with others.

Command Description
git diff Shows the difference between modified files and the last committed version.
git log Displays a list of all commits made in the repository’s history.
git clone Creates a local copy of a remote Git repository.
git pull Fetches and merges changes from a remote repository into your current branch.
git push Uploads your local commits to a remote repository.
git blame Shows who made each line change in a file and when.
git merge conflict Occurs when Git can't automatically merge changes; requires manual fix.
git branch Lists, creates, or deletes branches in the repository.

Screenshot showing git log output in the terminal with commit hashes and messages

Git clone command used in terminal to copy a remote repository

Example of git blame output showing author and line-by-line commit info