Learning web development: Version control via Git and GitHub
Briefly

Learning web development: Version control via Git and GitHub
"In this chapter, we learn how to use the version control system Git and a useful companion website, GitHub. Both are important tools when programming in teams but even help programmers who work on their own. Git is a version control system (a.k.a. source control system). It manages the different versions of the files in a repository (think directory) throughout their history. Git works best with text files such as the web development artifacts .html, .css and .js. But it can also handle binary files."
"After installing, run the following command: git config --global init.defaultBranch main This is a common setting and disables a tip message that is shown when using git init (which we'll use later). Using Git locally # In this section, we explore how we can turn a directory with files into a Git repository and how to use such a repository. You can follow along on your own computer."
Git is a version control system that tracks file history in repositories and works best with text files like .html, .css, and .js, while also handling binary files. GitHub serves as a companion website for hosting repositories and supporting collaboration. Install Git via a package manager; Homebrew on macOS is recommended to obtain a newer version than the system default. After installation, run git config --global init.defaultBranch main to set the default branch and silence an init tip. Create a local project directory and include files such as README.md, LICENSE, a js/ folder, and main.js. Name the README in all caps and use Markdown to describe repository contents.
Read at 2ality
Unable to calculate read time
[
|
]