Welcome Ask question during presentation I am not pro in presentations, feedback appreciated Using git for 1,5 year, 4 month on a company project hosted on GitHub No agenda, we will see how will it go
Why we need learn More sofisticated than centralized control systems Complains on stand-ups The same output achieved in many ways gitbook - Pro Git gitbook - Pro Git - polish
Commit and sha1 on our disk Demo Empty folder git init look to '.git/objects' touch file.txt git add file.txt git commit -m "initial" look to '.git/objects'
head, branch, commit correlation commit ~ sha1 branch HEAD (UPPERCASE convention, lowercase is also fine) parents: ~4 ^ ^^^ git commit --amend pointers
Undoing things reset --hard sha1 reset HEAD^ commit --amend -a commit -a (just commit), later: rebase -i Demo
Synchronize from others and resolve conflicts Demo git pull --rebase git config --global --bool pull.rebase true I never used fetch (creates no commit)
Command mappings wherever its possible Revert: git reset --hard, git clean -fd git revert changes, google->Stack Overflow, enormous number of votes on git mappings are antipatterns
My tools console is king really use it, only good patterns GitHub for Windows - browsing history, (DONT use magic Sync button)
Other TortoiseGit have old well known command mappings (Revert) aliases edit .gitconfig in user folder to add aliases my gist about aliases
GitHub This presentation hosted on github.io Collaborative platform No side TODO list, integrated Issues Wiki You changes accessible by link, no need for revision id and searching Compare ranges
[..] productive developers surround themselves with powerful tools for iterative development and debugging Paul Irish