Information Technology Reference
In-Depth Information
The command:
$ git checkout master
returns to the latest revision and restores the normal state.
Hint
Recipe 3-6 introduces a new characterization of a repository. We can say that a
repository is in a
detached HEAD state
or in a
normal state
.
3-7. Creating a git s alias
Problem
How to define an alias that will simplify the execution of a
$ git status -sb
command?
Solution
config
file.
Listing 3-7.
Alias git s
[alias]
s = status -sb
You can achieve the same result with the following command:
$ git config --global alias.s "status -sb"
How It Works
The alias
$ git s
executes the command: