Skip to main content

Git Basics

  • Chapter
  • First Online:
Pro Git
  • 35k Accesses

Abstract

If you can read only one chapter to get going with Git, this is it. This chapter covers every basic command you need to do the vast majority of the things you’ll eventually spend your time doing with Git. By the end of the chapter, you should be able to configure and initialize a repository, begin and stop tracking files, and stage and commit changes. We’ll also show you how to set up Git to ignore certain files and file patterns, how to undo mistakes quickly and easily, how to browse the history of your project and view changes between commits, and how to push and pull from remote repositories.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Scott Chacon

About this chapter

Cite this chapter

Chacon, S., Straub, B. (2014). Git Basics. In: Pro Git. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0076-6_2

Download citation

Publish with us

Policies and ethics