Loading tutorials
cd, mkdir, ls) and have Git installed. You do not need to have run any Git commands yet. Here you build a working model of what a repository is, so later commands make sense.2 min readcd, mkdir, ls), can edit plain text files, and have Git installed. Check the install with git --version.2 min readgit init.2 min readgit init in a project directory. It explains where your changes live at each step, which makes the later commands easier to predict.2 min readgit init in a project directory. You should also know that Git tracks changes in three places: the working tree, the staging area, and the repository.2 min readgit init in a project and set your user.name and user.email. You should know that Git keeps a working tree, a staging area, and a repository.2 min readgit add stages a file, and understand the three areas: working tree, staging area, and repository. Here you will learn how git diff compares those areas, so you can check a change before you commit it.2 min readgit init in a directory, set user.name and user.email, and know the three areas: working tree, staging area, and repository.2 min readgit init, stage files with git add, and run git commit. You should also be able to read git log --oneline. Here you will learn what makes a commit message useful months later, and which mistakes make history hard to read.2 min readgit add and git commit work.2 min readgit init, git add, and git commit, and that you know the three areas: working tree, staging area, and repository. Here you will look at what Git writes into .git when you commit.2 min read.gitignore file keeps build output, logs, and other generated files out of your history.2 min readgit init, stage files with git add, and read git status. It covers what git commit -a does, and where it stops working.2 min readgit add, and make commits with git commit. It also assumes you can read git status output. Here you will fix two common mistakes: staging the wrong thing, and committing with a bad message or a missing file.2 min readgit add, git commit, git status, and git diff. It also assumes you know the three areas: working tree, staging area, and repository. Your author name and email must be configured.2 min read