Git: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
Git is the famous version control system made by Linus Torvalds.
Git is the famous version control system made by Linus Torvalds.


=Usage=
==Usage==
==Basic Usage==
===Basic Usage===
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# Clone or download a repository
# Clone or download a repository
Line 23: Line 23:
</syntaxhighlight>
</syntaxhighlight>


==Branches==
===Branches===




==Pull Requests==
===Pull Requests===


=Git Large File Storage (LFS)=
===Migrating Repositories===
How to migrate repositories to another Git server
<syntaxhighlight lang="bash">
git clone --mirror <original_repo>
cd <repo>
 
# Run the following lines only if you're using lfs
git lfs fetch --all
git lfs push --all <new_repo>
 
git push --all <new_repo>
</syntaxhighlight>
 
==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]