Matt Gawarecki
2016-07-21
What would you say... you do here?
I asked for a mai tai, and they brought me a pina colada, and I said no salt, NO salt for the margarita, but it had salt on it, big grains of salt, floating in the glass...
So that means that every single day that you see me, that's on the worst day of my life.
What about today? Is today the worst day of your life?
Yeah.
Wow, that's messed up.
"PC LOAD LETTER"? What the f&*k does that mean?
git init
git clone <url> <directory>
"directory" defaults to the directory you're in
"url" can be git://, SSH, HTTP(S), FTP(S), or a local file path
Michael, I did nothing. I did absolutely nothing, and it was everything that I thought it could be.
git branch
git reset --hard <ref>
git checkout
No way! Why should I change? He's the one who sucks.
git add
git rm
git mv
git status
No way! Why should I change? He's the one who sucks.
git commit
git push
git revert <refs...>
Yeah hi, it's Bill Lumbergh again...
.gitignore
I stole something.
Yeah, I guess we all did.
No, I stole something else.
What did you steal?
We'll call it a going away present.
git fetch
git stash <save|pop|apply>
git pull
git merge <from>
I stole something.
Yeah, I guess we all did.
No, I stole something else.
What did you steal?
We'll call it a going away present.
git rebase
git log
git bisect
git blame
git diff
Milton, don't be greedy. Let's pass it along and make sure everyone gets a piece.
Made a commit, but I messed up my commit message!
$> git commit --amend -m "My new message"
Created a branch with the wrong name!
$> git branch -m new-branch-name
Got one of these error messages:
error: Entry '<fileName>' not uptodate. Cannot merge. (Changes in working directory)
error: Entry '<fileName>' would be overwritten by merge. Cannot merge. (Changes in staging area)
$> git stash save
$> git add . $> git commit -m "Committing my stuff"
OR
Got this error message:
CONFLICT (content): Merge conflict in <fileName>
Automatic merge failed; fix conflicts and then commit the result.
Fix your merge conflicts! Then...
$> git add . $> git commit -m "My commit message"
Got myself into a nasty situation while merging and I want to back out!
$> git merge --abort
Successfully pushed a change, but now I need to take it back!
$> git revert HEAD $> git push
Found out I have to fix something NOW,
but I've got important work that isn't ready to be committed!
$> git stash save
$> git stash pop
Do your work; then...
Found a bug, but I don't know where it's at or how to fix it!
$> git bisect start $> git bisect bad $> git bisect good <older-but-gooder-ref>
matt.gawarecki@gmail.com
Matt Gawarecki
@mattgawarecki
You see, it would be this mat that you would put on the floor, and it would have different "conclusions" written on it that you could "jump" to!