-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit.tex
More file actions
110 lines (86 loc) · 2.86 KB
/
Copy pathgit.tex
File metadata and controls
110 lines (86 loc) · 2.86 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
\documentclass[10pt,landscape,a4paper]{cheatsheet}
\usepackage{fontawesome}
\begin{document}
\sffamily
\small
\begin{multicols*}{5}
\includegraphics[scale=0.07]{img/git.png}
\vspace{-1.5cm}
\begin{flushright} \bf
GIT \\ Cheat Sheat \\ @compiledge
\end{flushright}
\vspace{-0.25cm}
\newSection{{\faGears} Config git}{purple}
\command{> git config}{change configs}
\flag{--global user.name}{}
\flag{--global user.email}{}
\newSection{{} Config etc}{purple}
\command{> git init}{start repository}
\command{> git status}{check dir and stage}
\command{> git add}{add file to stage}
\command{> git rev-parse}{check reference}
\newSection{Commits}{purple}
\command{> git commit}{save commit}
\flagAlt{-m}{--message}{message}
\flagAlt{?}{--ameend}{rewrite message}
\newSection{{\faCodeFork} Git Branch}{purple}
\command{> git branch}{}
\command{> git merge}{}
\command{> git checkout}{}
\flag{--force}{}
\command{> git push}{}
\command{> git branch}{}
\newSection{{\faHistory} Logs}{purple}
\command{> git log}{check logs}
\flag{--oneline}{commits titles}
\newSection{{\faLanguage} Diff}{purple}
\command{> git diff}{check diffs}
\flag{--git}{simulate diff in git}
\flag{--stat}{?}
\flag{--word-diff}{?}
\newSection{{\faGithubAlt} Git Remote}{purple}
\command{> git remote}{}
\flag{add origin [url]}{}
\flag{show}{}
\flag{prume}{}
\flag{rm}{}
\flag{--verbose}{list remote repos.}
\command{> git push}{}
\flag{--set-upstream}{}
\command{> git clone}{}
\command{> git pull}{}
\command{> git fetch}{}
\command{> git rebase}{}
% - `--bare` e `--mirror`: criar um repositório voltado para hospedagem;
% - `--depth [int]`: criar um *shallow clone*, *i.e.*, determinar a quantiade de revisões que serão baixadas; Útil quando o tempo de clonagem é alto demais.
% - `--recursive-submodules`: inicializa todos os submódulos do repositório;
\newSection{{\faFilesO} File system}{red}
\command{> git mv}{move/rename}
\flagAlt{-f}{--force}{messenge}
\flagAlt{-n}{--dry-run}{simulate}
\command{> git reset}{restore commit}
\flagAlt{?}{--mixed}{Index area}
\flagAlt{?}{--hard}{Index+Working dir}
\command{> git ls-files}{list files}
\flagAlt{-o}{--others}{Nontracking files}
\command{> git clean}{delete un.files}
\flagAlt{}{--force}{Necessary}
\flagAlt{-v}{--force}{state file}
\flagAlt{-d}{?}{directories}
\flagAlt{-n}{--dry-run}{simulate}
\flagAlt{-X}{?}{ignored files}
\flagAlt{-x}{?}{ignored files+untracked}
\command{> git stash}{hide changes}
\flag{save}{save stash}
\flag{list}{list h.changes}
\flag{pop}{pop+apply change}
\flag{apply}{apply change}
\command{> git update-index}{set flag}
\flag{[--no]--assume-unchanged}{ignore f.}
\newSection{{\faKey} SSH Conection}{red}
\command{> ssh git@github.com}{?}
\flag{-T}{no terminal emulator}
\flag{-v}{verbose}
% \newSection{{\faDashboard} Control}{red}
\end{multicols*}
\end{document}