Git

Mastering git, Part 14, Git Large File Storage

Git Large File Storage LFS Git LFS is an extension for Git that allows you to efficiently manage large files and binary files in a Git repository. Install Git LFS

Ensure Git LFS is installed, you can check by running:

Initialize Git LFS in Your Repository After installing Git LFS, navigate to your […]

Mastering git, Part 14, Git Large File Storage Read More »

Mastering git, Part 14, git-flow and GitHub flow

Git-Flow and GitHub Flow Both Git-Flow and GitHub Flow are workflow models that guide how software development teams use Git for version control. Each has its own structure and rules for managing branches, which can influence how teams collaborate and deploy software. Git-Flow Git-Flow is a branching model for Git, designed by Vincent Driessen. It

Mastering git, Part 14, git-flow and GitHub flow Read More »

Mastering git, Part 13, Detached HEAD in Git

Detached HEAD Before everything, let’s have a look at some stuff. Everything in Git is about commits, and many git commands accept commits as a parameter, i.e.

We have to understand how to reference commits. Hash The SHA-1 hash of a commit is the most straightforward method to refer to it. In the

Mastering git, Part 13, Detached HEAD in Git Read More »

Mastering git, Part 9, git Submodule

Set up: This allows the repository to be local a file directory:

Create remote:

Creating repos1

Creating lib1

Adding lib1 as submodule to repos1

Cloning a Project with Submodules to repos2

Working on Submodule lib1 in repos2:

Pulling in Upstream Changes from the Submodule Remote in repos1:

Mastering git, Part 9, git Submodule Read More »