m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/git.md
blob: 851dae41e42245c308c4911054d0c95775d37862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Git tips and tricks

## Setup name and email

    git config --global user.name "Name"
    git config --global user.email "name@place.com"

## `git bisect`

    git bisect start
    git bisect new
    git checkout <some commit a while ago>
    git bisect old
    git bisect run <command that returns 1 on old, 0 on new>