git terms

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

git init

A command that starts tracking a project with Git.

2
New cards

git clone

Downloads a GitHub repository to your local computer.

3
New cards

git add .

Stages all changed files to be committed.

4
New cards

git commit -m "message"

Saves a snapshot of the staged changes with a description.

5
New cards

git status

Shows which files are changed, staged, or untracked.

6
New cards

git push

Uploads local commits to the remote repository (e.g., GitHub).

7
New cards

git pull

Downloads and merges changes from the remote repo into your local branch.

8
New cards

git fetch

Downloads remote changes but does NOT merge them.

9
New cards

git merge

Merges the changes from another branch into your current branch.

10
New cards

git checkout

Switches to another branch.

11
New cards

git checkout -b

Creates and switches to a new branch.

12
New cards

git branch

Lists local branches.

13
New cards

git log

Shows the history of commits.

14
New cards

git diff

Shows the difference between commits or the working directory and the index.

15
New cards

git revert

Creates a new commit that undoes the changes of a previous commit.

16
New cards

git reset --hard

Forcibly resets the project to a previous commit, deleting changes after it.

17
New cards

origin

The default name for the remote repository (usually on GitHub).

18
New cards

HEAD

A pointer to the current commit you're working on.

19
New cards

pull request (PR)

A request to merge one branch into another (usually reviewed on GitHub).

20
New cards

.gitignore

A file that tells Git which files or folders to ignore.

21
New cards

git stash

Temporarily saves changes you don’t want to commit yet.