What are the differences between git branch, fork, fetch, merge, rebase and clone?

Git This answer includes GitHub as many folks have asked about that too. Local repositories Git (locally) has a directory (.git) which you commit your files to and this is your ‘local repository’. This is different from systems like SVN where you add and commit to the remote repository immediately. Git stores each version of … Read more

Can git ignore a specific line?

If your file is of a specific type, you can declare a content filter driver, that you can declare in a .gitattributes file (as presented in the “Keyword expansion” of “Git Attributes“): *.yourType filter=yourFilterName (you can even set that filter for a specific file, if you want) Implement: yourFilterName.smudge (triggered on git checkout) and git … Read more