Information Technology Reference
In-Depth Information
$ cd
∼
$ pwd
The above commands will work well on Linux, Mac, or the bash command line on
Windows. If you use a standard Windows' command line use:
$ cd %userprofile%
$ cd
If you work with
vi
you can open your git configuration file with:
# Linux
$ vi
∼
/.gitconfig
# Windows
$ vi %userprofile%\.gitconfig
The syntax of .gitconfig file
We will start the explanation of aliases with the syntax of a
.gitconfig
file. The in-
teresting characters are: hash marks, semicolons, quotes, and backslashes.
Inside a
.gitconfig
file you can use hash marks and semicolons to denote com-
ments that span to the end of the line. Thus the definition:
word = lorem ; ipsum
sets the property named
word
with the value
lorem
. The second word
ipsum
is
skipped because a semicolon starts the comment. Similar rules apply to hash marks.
The definition:
word2 = dolor # sit
sets the property
word2
with value
dolor
.
If you want to define the value containing semicolons or hash marks, you have to
use quotes:
sentence = "Lorem ; ipsum"