work it’s done! > git status show the status of the files from git’s perspective Changes not staged for commit: modified: README.txt Untracked files: hello.java
commit is a full snapshot of the contents of your working directory (everything being tracked by git, anyway), and it's kept track of using a unique 40 character SHA1 hash. This way, the exact state of your project can be referred to, copied, or restored at any time.” Pragmatic definition “a small and cohesive set of changes annotated with a message”
Fast-forward more.txt | 1 - 1 files changed, 0 Git - Branching C1 C2 C4 C3 HEAD master C5 coolStuff C6 No conflicts in this case => fast forward git create a new commit!
resolve conflicts lists files interested by conflicts We can manually edit the files or use a diff tool (k3diff, vimdiff, etc.) with git mergetool > git status
cat README.md <<<<<<< HEAD Many Hello World Examples ======= Hello World Lang Examples >>>>>>> coolStuff Once we are satisfied with the merge we need to commit the changes
International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ Author Alessandro Baldo speakerdeck.com/baldoalessandro/git-intro Thanks to Mattia Bertorello