Git in a few practical steps

Summary

Roger Dudler's Git guide leads concisely from repository and staging area to branches, remotes, merging and tagging. The guide is freely available online.

Ideas

  • git init creates a local repository.
  • git add moves changes into the staging area.
  • Commits save named states of the project history.
  • Branches allow independent lines of development.

Insights

  • A small mental model makes getting started easier than complete lists of commands.
  • Local version control is useful even without a central server.
  • Short work cycles encourage understandable and reversible changes.

Facts

  • It covers local and remote repositories.
  • Graphics explain branches and work areas.

Recommendations

  • Practise the commands in a throwaway repository.
  • Check status and diff before every commit.

References

Read the original article

Search the Web Archive

Found a mistake or have something to add? Get in touch.