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
Take a couple of hours to read some introductions, download Git, do some (interactive) tutorials, and continue with learning by doing.
- https://guides.github.com/
- https://www.git-scm.com/doc
- https://www.atlassian.com/git
- https://try.github.io/
- https://www.atlassian.com/git/tutorials/using-branches
- https://chris.beams.io/posts/git-commit/
- https://githowto.com/
- https://www.git-scm.com/docs/gittutorial or
git help tutorial
- https://github.com/jlord/git-it-electron (local, guided setup of your machine)
- https://ohmygit.org/ (online)
- https://learngitbranching.js.org/ (online)
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 atgit help tutorial
again.
If you already know the basics, here are some further interesting topics.
- https://www.git-scm.com/book/en/v2/Git-Tools-Stashing-and-Cleaning
- https://www.atlassian.com/git/tutorials/saving-changes/git-stash
- https://www.atlassian.com/git/tutorials/merging-vs-rebasing
- https://docs.github.com/en/github/using-git/using-advanced-git-commands
- https://derekgourlay.com/blog/git-when-to-merge-vs-when-to-rebase/
- https://medium.com/@porteneuve/getting-solid-at-git-rebase-vs-merge-4fa1a48c53aa
- https://opensource.guide/how-to-contribute/
- https://wiredcraft.com/blog/how-we-write-our-github-issues/
- https://github.com/firstcontributions/first-contributions
- https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github (video course)
- https://guides.github.com/activities/forking/
- https://docs.github.com/en/github/collaborating-with-pull-requests
- https://help.github.com/articles/duplicating-a-repository/
- https://www.atlassian.com/git/tutorials/git-forks-and-upstreams
- https://www.atlassian.com/git/tutorials/making-a-pull-request
- https://git.seveas.net/undoing-all-kinds-of-mistakes.html
- https://git.seveas.net/repairing-and-recovering-broken-git-repositories.html
- https://sethrobertson.github.io/GitFixUm/fixup.html
- https://training.github.com/downloads/submodule-vs-subtree-cheat-sheet/
- https://martowen.com/2016/05/01/git-submodules-vs-git-subtrees/
- https://github.com/ingydotnet/git-subrepo
- https://trunkbaseddevelopment.com/
- https://docs.gitlab.com/ee/topics/gitlab_flow.html
- http://nvie.com/posts/a-successful-git-branching-model/