13. Manage Files with Git

Git provides a rich collection of features, but the core set of features are the ones that you are going to use the most often. This includes commands that enable you to stage files and commit files to the local repository, as well as create branches. This chapter focuses on these topics as well as a few related ones.

Basic Configuration

You might want to perform several configuration operations. For example, you can set your default editor by executing the following command:

ocs@ubuntu:~/ocs$ git config --global core.editor vi

You can view current configuration settings by executing the git config --list command:

ocs@ubuntu:~/ocs$ git config --list user.name=Bo Rothwell user.email=bo@onecoursesource.com core.editor=editor_name ...

Get Linux for Developers: Jumpstart Your Linux Programming Skills now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.