Basic Commands - Intro to Git part 2

Installing Git You can find Git in basically every package manager in existence. If you don’t use a package manager, you can get git from the official downloads page. This tutorial uses git version 2.x.x. Check which version you have by running $ git --version Creating a repository To create a git repository in the current directory, use the init subcommand: $ git init This command will create the .git directory with the following structure (or similar):...

August 23, 2020 · 4 min · Kian Kasad

Gitting off the Ground - Intro to Git part 1

What is Git? Git is the world’s most popular version control software. But that raises another question; what is version control? Version control is a system of saving changes to files in steps. In Git, these steps are called ‘commits.’ When you use version control, all changes to your codebase are kept and are organized for you. This is extremely useful if you want to do something like roll back a change, or pinpoint when a bug was introduced....

August 22, 2020 · 5 min · Kian Kasad

Using Git Submodules

If you’ve ever tried to add a Git repository within another Git repository, you may have gotten a confusing message like this: warning: adding embedded git repository: another-repo hint: You've added another-repo git repository inside your current repository. hint: Clones of the outer repository will not contain the contents of hint: the embedded repository and will not know how to obtain it. hint: If you meant to add a submodule, use: hint: hint: git submodule add <url> another-repo hint: hint: If you added this path by mistake, you can remove it from the hint: index with: hint: hint: git rm --cached another-repo hint: hint: See "git help submodule" for more information....

August 22, 2020 · 2 min · Kian Kasad

Creating a Blog With Hugo

Web development can be tricky, especially if you want your site to look nice. That’s where Hugo comes in. Hugo is a static site generator (SSG). It takes simple markdown files and converts them into web-ready HTML/CSS/JS using a theme you provide. Installing Hugo Most Linux distributions already have a package for Hugo. It can also be installed using Homebrew or Chocolatey. If you don’t use a package manager, binaries are available for Windows, MacOS, Linux, FreeBSD, and OpenBSD from the Hugo releases page....

August 22, 2020 · 6 min · Kian Kasad