Public flashcard set

Git Commands

20 cards · By Dima

Master the most common Git commands used in everyday software development.

Open beautiful study page Study flashcards Sign up free

Flashcards

git init
Creates a new Git repository.
git clone
Copies an existing repository to your computer.
git status
Shows the current repository status.
git add
Stages files for the next commit.
git commit
Saves staged changes to the repository.
git push
Uploads local commits to a remote repository.
git pull
Downloads and merges changes from a remote repository.
git fetch
Downloads changes without merging them.
git merge
Combines one branch into another.
git branch
Lists, creates, or deletes branches.
git checkout
Switches to another branch or commit.
git switch
Changes the current branch.
git restore
Restores modified files.
git log
Displays commit history.
git diff
Shows differences between files or commits.
git remote
Manages remote repositories.
git stash
Temporarily saves uncommitted changes.
git tag
Creates a named version of a commit.
git reset
Moves the current branch to a previous commit.
git rebase
Reapplies commits onto another branch.

Схожі набори