Git Debugging Techniques
https://www.pluralsight.com/courses/git-debugging-techniques
by Aaron Stewart
Mod 1: Course Overview
- Course Overview
Mod 2: Debug Using Binary Search with Git Bisect
- Three Git Debugging Techniques
- Git Bisect Use Cases
- git bisect
- use to track down when and where a bug was introduced
- How to Use Git Bisect
- Git Bisect in Action try it
- step 1) you start by doing git bisect start
- step 2) git bisect good <good commit>
- step 3) git bisect bad <bad ommit>
- step 4) test the code
- step 5) if test fails, inform git by doing git bisect bad
- step 6) repeat steps 4 and 5 until bug is found
- step 7) end session by doing git bisect reset
- Automate Git Bisect
- automate git bisect by using a script try it
Mod 3: Debug Using File History with Git Blame
- Introduction to Git Blame
- Git Blame Use Cases
- Git Blame in Action
- using git blame with line numbers like this: git blame -L 67,82 index.html
- If you're in a situation where you can see the effect of a bug, but aren't sure which part of the code leads to it, use git bisect
Mod 4: Debug Using a String or Regular Expression with Git Grep
- Introduction to Git Grep
- Git Grep Use Cases
- use git grep to search the contents of you file
- you can search in specific branch names
- Git Grep in Action
- Summary
Comments
Post a Comment