1/11
Looks like no tags are added yet.
Terminal vs Shell
Terminal: text input and output environment
Shell: interprets and processes commands. (Command line interpreter). Bash is a type of shell.
origin
Community-agreed nickname for your default/main remote repository
Remote repository
Version of your project that is hosted on the internet (most likely github)
Forked repository
A copy of a repository. Any changes will not affect the original repository.
Commit
Save changes locally
git push
Save changes to personal remote repository
git pull
Bring the files from the remote repository to your local repository. Commits on the remote branches are committed to local branches.
git fetch
Downloads latest updates from remote repository. Doesn’t commit to any of your local branches unlike git pull
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)
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’
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’
Downstream
Away from the remote repository, towards your local repository.
Use: unclear