Slide 1

Slide 1 text

Git workflow by @r7kamura

Slide 2

Slide 2 text

workflow

Slide 3

Slide 3 text

checkout -b feature commit rebase commit rebase commit merge master feature

Slide 4

Slide 4 text

checkout commit -m “add foo” rebase commit rebase commit merge master feature

Slide 5

Slide 5 text

checkout commit rebase master commit rebase commit merge master feature

Slide 6

Slide 6 text

checkout commit rebase commit -m “add bar” rebase commit merge master feature

Slide 7

Slide 7 text

checkout commit rebase commit rebase master commit merge master feature

Slide 8

Slide 8 text

checkout commit rebase commit rebase commit -m “add baz” merge master feature

Slide 9

Slide 9 text

checkout commit rebase commit rebase commit merge feature --no-ff master feature

Slide 10

Slide 10 text

checkout commit rebase commit rebase commit merge feature --no-ff master feature push ghe feature Use merge button on GHE

Slide 11

Slide 11 text

tips

Slide 12

Slide 12 text

$ git config push.default tracking $ git push -u origin feature $ git push tips 1: git push without args

Slide 13

Slide 13 text

$ git config push.default current $ git push tips 1: git push without args

Slide 14

Slide 14 text

tips 2: tig

Slide 15

Slide 15 text

tips 3: .tigrc # .tigrc - thanks to kyanny-san bind main o !@hub browse -- commit/%(commit) bind diff o !@hub browse -- commit/%(commit) bind log o !@hub browse -- commit/%(commit) Press “O” to browse the commit in github

Slide 16

Slide 16 text

tips 4: git blame with editor

Slide 17

Slide 17 text

tips 5: show current branch show current branch by tmux-powerline

Slide 18

Slide 18 text

tips 6: partial config file # ~/.gitconfig [include] path = .gitconfig.local # ~/.gitconfig.local [user] email = [email protected]

Slide 19

Slide 19 text

thanks! ✘ ╹◡╹ ✘ @r7kamura