5,332
edits
No edit summary |
|||
Line 1: | Line 1: | ||
Git is | Git is a popular version control system made by Linus Torvalds. | ||
==Usage== | ==Usage== | ||
Line 40: | Line 40: | ||
git push --all <new_repo> | git push --all <new_repo> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===gitignore=== | |||
.gitignore is used to ignore certain files to make sure they do not get accidentally pushed to the remote git repo.<br> | |||
You can find a collection of .gitignore files on [https://github.com/github/gitignore Github's gitignore repo]. | |||
===gitattributes=== | |||
.gitattributes are used to give attributes to paths.<br> | |||
They can be used to assign programming languages to filenames.<br> | |||
They are also used to identify which files should be stored in the lfs.<br> | |||
Here is an example to store video and images in the lfs.<br> | |||
<pre> | |||
## Video | |||
*.mp4 filter=lfs diff=lfs merge=lfs -text | |||
*.mov filter=lfs diff=lfs merge=lfs -text | |||
*.flv filter=lfs diff=lfs merge=lfs -text | |||
## Pictures | |||
*.png filter=lfs diff=lfs merge=lfs -text | |||
*.jpg filter=lfs diff=lfs merge=lfs -text | |||
*.jpeg filter=lfs diff=lfs merge=lfs -text | |||
## Binary files | |||
*.bin filter=lfs diff=lfs merge=lfs -text | |||
*.7z filter=lfs diff=lfs merge=lfs -text | |||
</pre> | |||
==Git Large File Storage (LFS)== | ==Git Large File Storage (LFS)== | ||
[https://github.com/git-lfs/git-lfs/wiki/Tutorial Reference] | [https://github.com/git-lfs/git-lfs/wiki/Tutorial Reference] |