MOST COMMON GIT COMMANDS

git initicon

Creates a new local repository in the current directory.

git clone icon

Copies an existing remote repository to your local machine.

git status icon

Shows the state of your working directory and staging area.

git add icon

Adds changes in your working directory to the staging area, which is a temporary area where you can prepare your next commit.

git commit icon

Records the changes in the staging area as a new snapshot in the local repository, along with a message describing the changes.

git push icon

Uploads the local changes to the remote repository usually a on a platform like GitHub or GitLab.

git pull icon

Downloads the latest commits from a remote repository and merges them with your local branch.

git branch icon

Lists, creates, renames, or deletes branches in your local repository. A branch is a pointer to a specific commit.

git checkout icon

Switches your working directory to a different branch or commit, discarding any uncommitted changes.

git merge icon

Combines the changes from one branch into another branch, creating a new commit if there are no conflicts.

git diff icon

Shows the differences between two commits, branches, files, or the working directory and the staging area.

git log icon

Shows the history of commits in the current branch, along with their messages, authors, and dates.