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.

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. |