Update git-memo.content.md

Add additional git commands to git-memo.content.md
This commit is contained in:
Cory Lewis 2023-11-22 09:53:48 -08:00 committed by GitHub
parent 2e56641398
commit 2d55c0146e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,3 +75,30 @@ Renaming the local master branch to main
```shell
git branch -m master main
```
Checking log graph
```shell
git log --graph
```
Checking log graph (merges only)
```shell
git log --graph --merges
```
Tracking down a bad commit using binary search
```shell
git bisect start
git bisect good 13c988d4f15e06bcdd0b0af290086a3079cdadb0
git bisect bad ca82a6dff817ec66f44342007202690a93763949
```
Pulling new changes into current branch from mainline
```shell
git checkout [branchh-name]
git fetch origin [master-branch-name]
git rebase origin/[master-branch-name]
```