6 Stashing Sign in on the attendance sheet Gitstache Scenario you want to switch branches but you have uncommitted changes What if you dont want to commit git stash Example use g ID: 387191
Download Presentation The PPT/PDF document "Lecture" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Lecture 6Midsemester ReviewSlide2
What We’ve Learned So FarCreating and cloning repositories
git
init
, git clone
Linear commit histories and diffs
git log, git show, git diff
Using the working directory and staging area and making commits
git add, git reset, git checkout, git commit
Using branches
git branch, git checkout, git merge
How Git’s model for commit histories worksSlide3
Midterm ReviewSlide4
SummaryConfiguring remotes:git remote [-v] – lists remotes [verbosely]git remote add <
remotename
> <
remoteurl
> - configure a new remote
git
branch –r or –a – lists branches including remote tracking
Fetching:
git
fetch <
remotename
> - downloads updates to all remote-tracking branches to match the remote
git
pull <
remotename
> - runs `
git
fetch`, then merges in updates to the current branch
Pushing:
git
push <
remotename
> <
branchname
> - uploads changes in your branches to the remoteSlide5
Questions so far?