Skip to content

Instantly share code, notes, and snippets.

@dwettstein
Last active September 11, 2023 00:05
Show Gist options
  • Save dwettstein/9e435e514d6127056cddd85084390fda to your computer and use it in GitHub Desktop.
Save dwettstein/9e435e514d6127056cddd85084390fda to your computer and use it in GitHub Desktop.
Getting Started with Git

Getting Started with Git

This document should help you getting started with using Git.

Author: David Wettstein
Version: 1.1.0, 2021-07-26
License: Copyright (c) 2021 David Wettstein, http://wettste.in, licensed under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).
Link: https://gist.github.com/dwettstein/9e435e514d6127056cddd85084390fda

Table of Contents

First Steps

Take a couple of hours to read some introductions, download Git, do some (interactive) tutorials, and continue with learning by doing.

Introductions

Tutorials

Extra tip: Be sure that your machines and configurations are properly set up (at least your name and email), see also https://www.git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup.

Then, start using Git for your

  • dotfiles,
  • blogs,
  • home automation projects,
  • DIY stuff,
  • and everyday work of course...

Extra tip: If you are sitting at the console and you forgot the most important Git commands, just execute git help everyday, or have a look at git help tutorial again.

Going Pro

If you already know the basics, here are some further interesting topics.

Stashing

Merging and Rebasing

Forking and Collaborating

Undoing and Repairing

Submodule, Subtree, and Subrepo

Branching Models

README, LICENSE, CHANGELOG and Versioning

Machine-Readable Commit Messages

Automate Versioning and Changelog Generation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment