Open main menu

Changes

Git installation

1,091 bytes removed, 15:10, 24 June 2013
# If you would like to replace the last commit info
git commit --amend
 
== .gitattributes ==
 
STOP ! Thís session should not be necessary.
 
We want to always use [https://help.github.com/articles/dealing-with-line-endings linux line endings.]
Write in ".gitattributes"
# Declare files that will always have LF line endings on checkout.
#*.py text eol=lf
text eol=lf
 
git add .gitattributes
git commit
 
commit message
<source lang="text">
Added gitattributes to have LF line endings on checkout.
</source>
 
# To see the commit message
git log
# If you would like to replace the last commit info
git commit --amend
 
=== Re-normalizing the repository ===
Remove everything from the index.
git rm --cached -r .
Write both the index and working directory from git's database
git reset --hard
Prepare to make a commit by staging all the files that will get normalized. <br>
This is your chance to inspect which files were never normalized. You should
get lots of messages like: "warning: CRLF will be replaced by LF in file. <br>
git add relax_commit.txt
git add .gitignore
git add .gitattributes
 
Then Commit
git commit -m "Normalized line endings"
== See also ==
[[Category:Git]]