Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

Common Git Commands

20

Flashcards

0/20

Still learning
StarStarStarStar

git log

StarStarStarStar

Shows the commit logs

StarStarStarStar

git push [alias] [branch]

StarStarStarStar

Pushes commits made on a local branch to a remote repository

StarStarStarStar

git merge [branch]

StarStarStarStar

Merges specified branch’s history into the current branch

StarStarStarStar

git checkout [branch-name]

StarStarStarStar

Switches to a specified branch and updates the working directory

StarStarStarStar

git fetch [alias]

StarStarStarStar

Downloads objects and refs from a remote repository

StarStarStarStar

git status

StarStarStarStar

Displays the state of the working directory and staging area

StarStarStarStar

git rm [file]

StarStarStarStar

Removes files from the working directory and staging area

StarStarStarStar

git config --global user.name "[name]"

StarStarStarStar

Sets the name that will be attached to your commits and tags

StarStarStarStar

git add [file]

StarStarStarStar

Adds a file to the staging area

StarStarStarStar

git pull [alias] [branch]

StarStarStarStar

Fetches changes from the remote repository and merges them into the local branch

StarStarStarStar

git tag

StarStarStarStar

Creates, lists, deletes or verifies a tag object signed with GPG

StarStarStarStar

git init

StarStarStarStar

Initializes a new Git repository

StarStarStarStar

git clone [url]

StarStarStarStar

Clones a repository into a new directory

StarStarStarStar

git show [commit]

StarStarStarStar

Displays information about a git object such as a commit

StarStarStarStar

git commit -m "[message]"

StarStarStarStar

Records file snapshots in the version history

StarStarStarStar

git stash

StarStarStarStar

Temporarily stores all modified tracked files

StarStarStarStar

git remote -v

StarStarStarStar

Lists all remote repositories

StarStarStarStar

git reset

StarStarStarStar

Resets the staging area to match the most recent commit, but leaves the working directory unchanged

StarStarStarStar

git branch

StarStarStarStar

Lists, creates, or deletes branches

StarStarStarStar

git diff

StarStarStarStar

Shows the differences not yet staged

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.