bk99.de entertain the web since 1997

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. It covers local and remote repositories.

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

  • 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