FlashKeepers

Git and Version Control · College · College and University

Git IV: Remotes and Collaboration

Clone, fetch, pull, push, upstream tracking, pull requests, forks, branching workflows and force-push safety.

About this set

40 basic cards for College Git and Version Control. Set 4 of 4 in Git. It opens with "What does git clone do?" and "What does git fetch do?". Study it alongside the other College sets below.

40 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What does git clone do?
Show answerCreates a local copy of a remote repository with all its history
What does git fetch do?
Show answerDownloads updates from a remote repository without merging them into your branch
What does git pull do?
Show answerFetches changes from the remote and merges them into the current branch
What is a remote in git?
Show answerA reference to a repository hosted on another server that you can sync with
What is origin?
Show answerThe default remote name for a repository cloned from another server
What is an upstream branch?
Show answerA remote branch that a local branch is configured to track for synchronization
What does git push do?
Show answerUploads local commits to a remote repository
What is a fork?
Show answerA personal copy of someone else's repository on a hosting service like GitHub
What is a pull request?
Show answerA request to merge changes from one branch to another, usually submitted for code review
What does git remote -v show?
Show answerLists all configured remotes with their URLs
What is a branching workflow?
Show answerA strategy for organizing feature development and releases using branches
What does git rebase do?
Show answerReapplies commits from one branch on top of another branch's latest commit
What does force push do?
Show answerOverwrites remote branch history with your local branch history
Why is force push dangerous?
Show answerIt can delete commits that other developers have based work on, breaking their branches
What does git branch -u origin/main do?
Show answerSets the upstream tracking branch for the current branch to origin/main

25 more cards in the app

Study this set free