Loading tutorials
git status and git diff. You should be comfortable in a terminal. You should also know that a file is stored as bytes and that a text editor interprets those bytes as characters.3 min readcore.autocrlf does, which value to pick, and why it can't be 3 min readcore.autocrlf. Here you learn what a .gitattributes file is and how to write its lines. Later chapters cover individual attributes in detail.3 min read.gitattributes file format (one pattern followed by attributes per line). It covers the text attribute, with a focus on text=auto.3 min readtext=auto in a .gitattributes file, and can run Git commands in a terminal.3 min readtext attribute from the previous chapters. It covers how Git can damage binary files, how to prevent that, and how to check that your rules work.3 min readgit status output. It also assumes you know what a .gitattributes file is and that LF and CRLF are different line endings. Here you will learn to inspect how Git classifies a file, so you can stop guessing when line endings misbehave.3 min read.gitattributes file with text=auto and any eol rules. Adding those rules does not rewrite files that are already committed. This chapter covers how to apply them to existing history safely.3 min read.gitattributes rules (text=auto, eol=lf, binary) and run git check-attr. It covers where Git looks for attributes and how it resolves conflicts between them.3 min readtext, eol, core.autocrlf, and git add --renormalize. Here you will use them to diagnose three problems that come up most often.3 min read.gitattributes file with text, eol and binary, and that you know the basic Git workflow. Line endings are only one use of attributes. The same file can also change how Git diffs, merges and exports files.3 min read.gitattributes file, you know what the binary macro and the -text attribute do, and you have Git LFS installed. Earlier chapters covered keeping Git from converting binary files. Large files raise a different problem: even unconverted, every version of a 202 min read