Git terminology

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

12 Terms

1
New cards

Terminal vs Shell

Terminal: text input and output environment

Shell: interprets and processes commands. (Command line interpreter). Bash is a type of shell.

2
New cards

origin

Community-agreed nickname for your default/main remote repository

3
New cards

Remote repository

Version of your project that is hosted on the internet (most likely github)

4
New cards

Forked repository

A copy of a repository. Any changes will not affect the original repository.

5
New cards

Commit

Save changes locally

6
New cards

git push

Save changes to personal remote repository

7
New cards

git pull

Bring the files from the remote repository to your local repository. Commits on the remote branches are committed to local branches.

8
New cards

git fetch

Downloads latest updates from remote repository. Doesn’t commit to any of your local branches unlike git pull

9
New cards

git merge

Brings two branches latest commits together onto one branch. Doesn’t make a new branch, uses the branch you are currently on. The other branch no longer exists as an individual branch.

e.g.

git switch main

git merge feature-branch (feature-branch is merged to main)

10
New cards

Pull request on github

Request the user whose repository you forked from to push your changes to their repository.

“A branch is too heavy to push into a tree. The tree must lean down and pull the branch in itself.”

NOT TO BE CONFUSED WITH ‘git pull’

11
New cards

Upstream

Upstream is the remote branch git tracks, like origin/main for main.

-u records which remote branch a branch belongs to so you only need to type the long form once. First time ‘git push -u origin main’, every other time ‘git push’

12
New cards

Downstream

Away from the remote repository, towards your local repository.

Use: unclear