about summary refs log tree commit diff stats
path: root/dev/git/install.html
blob: 3e5dbfb22b4704b08b691499d8108746a2e9ba37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html dir="ltr" lang="en">
    <head>
    <meta charset='utf-8'>
    <title>1. Install git</title>
</head>
<body>

    <a href="index.html">Git Index</a>

    <h1>1. Install Git</h1>

    <p>Install git;</p>

    <pre>
    $ sudo prt-get depinst git
    </pre>

    <p>First configure your global identity, configuration
    file resides on ~/.gitconfig ;</p>

    <pre>
    $ git config --global user.name "User Name"
    $ git config --global user.email user@devbox
    $ git config --global core.editor "vim"
    </pre>

    <p>If you want to disable pager / paging you can set globally;</p>

    <pre>
    $ git config --global core.pager cat
    </pre>

    <p>Paging based on output size with less;</p>

    <pre>
    $ git config --global core.pager "less -F -X"
    </pre>

    <p>Use <a href="../../tools/vim.html#vimdiff">vimdiff</a> as diff and merge tool;</p>

    <pre>
    $ git config --global diff.tool vimdiff
    $ git config --global merge.tool vimdiff
    $ git config --global difftool.prompt false
    </pre>

    <a href="index.html">Git Index</a>
    <p>This is part of the LeetIO System Documentation.
    Copyright (C) 2021
    LeetIO Team.
    See the file <a href="../../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
    for copying conditions.</p>
</body>
</html>