1/20
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
git init
A command that starts tracking a project with Git.
git clone
Downloads a GitHub repository to your local computer.
git add .
Stages all changed files to be committed.
git commit -m "message"
Saves a snapshot of the staged changes with a description.
git status
Shows which files are changed, staged, or untracked.
git push
Uploads local commits to the remote repository (e.g., GitHub).
git pull
Downloads and merges changes from the remote repo into your local branch.
git fetch
Downloads remote changes but does NOT merge them.
git merge
Merges the changes from another branch into your current branch.
git checkout
Switches to another branch.
git checkout -b
Creates and switches to a new branch.
git branch
Lists local branches.
git log
Shows the history of commits.
git diff
Shows the difference between commits or the working directory and the index.
git revert
Creates a new commit that undoes the changes of a previous commit.
git reset --hard
Forcibly resets the project to a previous commit, deleting changes after it.
origin
The default name for the remote repository (usually on GitHub).
HEAD
A pointer to the current commit you're working on.
pull request (PR)
A request to merge one branch into another (usually reviewed on GitHub).
.gitignore
A file that tells Git which files or folders to ignore.
git stash
Temporarily saves changes you don’t want to commit yet.