Git Essentials: Core Commands and Concepts

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

1/19

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering core Git commands and concepts mentioned in the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

Git

A mature, open-source distributed version control system used to track changes in code across commits and branches (created in 2005 by Linus Torvalds).

2
New cards

Git repository

The core storage area for a project's history, containing commits, branches, and metadata (local or remote).

3
New cards

Working copy

A local, editable copy of files from a repository that you modify.

4
New cards

Clone

Create a working copy of an existing repository.

5
New cards

Init

Initialize a new Git repository in a directory (creates the .git directory).

6
New cards

Add

Add files to be tracked by the repository; stages changes for commit.

7
New cards

Commit

Record changes to the repository as a snapshot of the files at a moment in time, typically with a message.

8
New cards

Status

Show the current state of the working directory and staging area (which files are added, modified, or staged).

9
New cards

Branch

A pointer to a snapshot used to encapsulate changes; enables parallel feature development.

10
New cards

Master branch

The main branch where merged changes are consolidated.

11
New cards

Merge

Integrate changes from one branch into another (e.g., from a feature branch into master).

12
New cards

Pull

Fetch and merge changes from a remote repository into the local copy.

13
New cards

Push

Upload local commits to a remote repository (central repository).

14
New cards

Log

Display the history of commits in a repository; can be filtered (e.g., by date).

15
New cards

Checkout

Switch to a specific branch to work on it.

16
New cards

Remote repository

A central or remote location that stores a copy of the repository for collaboration.

17
New cards

.gitignore

A file named .gitignore that lists patterns of files to ignore during commits.

18
New cards

.git directory

The internal Git directory in the project that stores all Git data.

19
New cards

Git config --global user.name

Global setting that configures the user's display name for commits.

20
New cards

git log --since

Git log option to show commits since a specific time period (e.g., --since=10.days).