X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=pep-git.txt;h=bb1d77b73f63e7e7e4036cdaf555afa96deaca6e;hb=3c69930122749e2c433afedec102dbae698d88d3;hp=d215a585978b640279a538aebed908cc22eeeb05;hpb=ff0aeb35aaf670d3240e79de4c0fca72172a66d3;p=git-wiki.git diff --git a/pep-git.txt b/pep-git.txt index d215a58..bb1d77b 100644 --- a/pep-git.txt +++ b/pep-git.txt @@ -326,6 +326,11 @@ from it) you do that in two steps using two repositories: you push from the workstation to a bare repo on the remote host, ssh to the remote host and pull from the bare repo to a non-bare deployment repo. +That changed in git 2.3, but see `the blog post +`_ +for caveats; in 2.4 the push-to-deploy feature was `further improved +`_. + Tags '''' @@ -591,9 +596,23 @@ Advanced configuration Line endings ------------ -Git has builtin mechanisms to handle line endings. +Git has builtin mechanisms to handle line endings between platforms +with different EOL styles. To allow git to do CRLF conversion assign +``text`` attribute to files using `.gitattributes +`_. +For files that have to have specific line ending assign ``eol`` +attribute. For binary files the attribute is, naturally, ``binary``. + +For example:: + + $ cat .gitattributes + *.py text + *.txt text + *.png binary + /readme.txt eol=CRLF -TODO: describe crlf configuration and .gitattributes. +To check what attributes git uses for files use ``git check-attr`` +command. Advanced topics