pointers to blobs and other trees. !"❱❱❱ git cat-file -p d31e9 100644 blob 2edbc8 README.md 040000 tree 260449 app A tree stores a text file with the mode, type, sha, and, name of each entry.
is stored in the commit object. !"❱❱❱ git cat-file -p 237e8d7 tree d31e9e author Meagan Waller committer Meagan Waller Initial commit A commit points to a tree and keeps an author, committer, message, and any parent commits
is stored in the commit object. !"❱❱❱ git cat-file -p e825ee8 tree b8ba0 parent 045883 author Meagan Waller committer Meagan Waller A commit points to a tree and keeps an author, committer, message, and any parent commits
is stored in the commit object. !"❱❱❱ git cat-file -p 1e4fb7a tree 5d7bf9 parent 4d9d44 parent 1ecf93 author Meagan Waller A commit points to a tree and keeps an author, committer, message, and any parent commits
shorthand name for a particular commit. !"❱❱❱ git cat-file -p v1.0 object 237e8d type commit tag v1.0 tagger Meagan Waller version 1.0 They contain an object, type, tagger, and a message. The type is usually a commit and the object is the SHA-1 of the commit you’re tagging.
-> master) Merge branch ‘new-feature' 240106a (hotfix) Does the even cooler thing 78d44a3 (new-feature) Adds the amazing feature 830b929 Adds to the README 237e8d7 (tag: v1.0) Initial commit
snapshots. A commit is a pointer to the snapshot of the content we staged and some metadata. A branch is a moveable, lightweight pointer to a commit. master is no different than any other branch
Create a branch for a new story 3. Do work in that branch Critical issue requires a hot fix ASAP 1. Switch to production branch 2. Create a hot fix branch 3. After testing, merge branch and push to production 4. Switch back to original story and continue working
No merge commit will be made Commit pointed to by hotfix branch directly ahead of commit pointed to by master Git only had to move the pointer forward.
The merge is made by the recursive strategy. Git performs a three-way merge 1. Finds a common ancestor of master and the feature branch Our histories have diverged, master had hotfix merged into it.
The merge is made by the recursive strategy. Git performs a three-way merge 1. Finds a common ancestor of master and the feature branch 2. Creates a new snapshot, the result of the three-way merge Our histories have diverged, master had hotfix merged into it.
The merge is made by the recursive strategy. Git performs a three-way merge 1. Finds a common ancestor of master and the feature branch 2. Creates a new snapshot, the result of the three-way merge 3. Creates a merge commit pointing to the snapshot. This commit will have 2 parents. Our histories have diverged, master had hotfix merged into it.
is to figure out what is yours and what they’re rewritten. Git calculates another checksum based on the patch introduced with the commit called the patch-id.
What is unique to our branch 2. Which aren’t merge commits 3. Which have not been rewritten into the target branch 4. Apply those commits to the top of dk/master C1 dk/master C4’ C6 C5 C4 C2 C3 master C7
What is unique to our branch 2. Which aren’t merge commits 3. Which have not been rewritten into the target branch 4. Apply those commits to the top of dk/master C1 dk/master C4’ C6 C5 C4 C2 C3 master C7
What is unique to our branch 2. Which aren’t merge commits 3. Which have not been rewritten into the target branch 4. Apply those commits to the top of dk/master C1 dk/master C4’ C6 C5 C4 C2 C3 master C7
What is unique to our branch 2. Which aren’t merge commits 3. Which have not been rewritten into the target branch 4. Apply those commits to the top of dk/master C1 dk/master C4’ C6 C5 C4 C2 C3 master C7
What is unique to our branch 2. Which aren’t merge commits 3. Which have not been rewritten into the target branch 4. Apply those commits to the top of dk/master C1 dk/master C4’ C5 C2’ C3’ master
combinations and parts of files. Patch update>> diff --git a/README.md b/README.md index f8b7956..2a41661 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ This is the skillshare README! -Learning Git is fun! +Learning Git is fun. Stage this hunk [y,n,q,a,d,/,e,?]?
combinations and parts of files. Stage this hunk [y,n,q,a,d,/,e,?]? ? y - stage this hunk n - do not stage this hunk q - quit; do not stage this hunk or any of the remaining ones a - stage this hunk and all later hunks in the file d - do not stage this hunk or any of the later hunks in the file g - select a hunk to go to / - search for a hunk matching the given regex j - leave this hunk undecided, see next undecided hunk J - leave this hunk undecided, see next hunk k - leave this hunk undecided, see previous undecided hunk K - leave this hunk undecided, see previous hunk s - split the current hunk into smaller hunks e - manually edit the current hunk ? - print help