-
Notifications
You must be signed in to change notification settings - Fork 65
/
help.sh
138 lines (126 loc) · 8.13 KB
/
help.sh
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#!/bin/bash
#
# Author: Diogo Alexsander Cavilha <[email protected]>
# Date: 11.18.2017
#
# It prints the help text.
echo "FancyGit v$FANCYGIT_VERSION - $(date +%Y) by Diogo Alexsander Cavilha <[email protected]>.
DESCRIPTION:
FancyGit is a prompt changer that shows cool git repo status in a faster and easier way to understand it.
CORE COMMANDS:
fancygit -h, --help Show this help.
fancygit -v, --version Show the FancyGit version.
fancygit --update Update FancyGit code with the last release from Github.
fancygit --fonts-install Install font in order to render icons/symbols properly.
fancygit --suggested-global-git-config Show the suggested global git config.
fancygit --suggested-global-git-config-apply Apply the suggested global git config.
fancygit --config-list Show FancyGit config.
fancygit --reset Reset the configuration as if you have just installed FancyGit.
fancygit --changelog-show Show changelog for the last version.
fancygit --show-themes Show all available themes.
fancygit --show-color-schemes Show available color schemes for current theme.
fancygit --show-color-schemes-all Show all available color schemes.
FEATURE SWITCHER COMMANDS:
fancygit --enable-full-path Show the entire path.
fancygit --disable-full-path Show only the the directory name you are working on. Not the entire path.
fancygit --enable-time Show current time.
fancygit --disable-time Hide current time.
fancygit --enable-double-line Show a double line prompt.
fancygit --disable-double-line Show a single line prompt.
fancygit --enable-rich-notification Show notification area with icons.
fancygit --disable-rich-notification Show notification area with simple symbols.
fancygit --enable-bold-prompt Show bold prompt font.
fancygit --disable-bold-prompt Show regular prompt font.
fancygit --enable-host-name Show host name. (It works for human theme only)
fancygit --disable-host-name Hide host name. (It works for human theme only)
fancygit --enable-git-clear Clear the terminal as part of some git aliases
fancygit --disable-git-clear Do not clear the terminal with any git aliases
THEME COMMANDS:
fancygit --theme-default Change prompt to the default theme.
fancygit --theme-human Change prompt to the human theme readable theme.
fancygit --theme-simple Change prompt to the simple theme.
COLOR SCHEME COMMANDS:
fancygit --color-scheme-simple Available for theme-simple.
fancygit --color-scheme-human Available for theme-human.
fancygit --color-scheme-human-dracula Available for theme-human.
fancygit --color-scheme-default Available for theme-default.
fancygit --color-scheme-dracula Available for theme-default.
fancygit --color-scheme-batman Available for theme-default.
fancygit --color-scheme-robin Available for theme-default.
fancygit --color-scheme-superman Available for theme-default.
fancygit --color-scheme-light Available for theme-default.
fancygit --color-scheme-neon Available for theme-default.
SEPARATOR STYLE COMMANDS:
fancygit --separator-default Change the separator (if it's present on current theme) to default style.
fancygit --separator-blocks Change the separator (if it's present on current theme) to blocks style.
fancygit --separator-blocks-tiny Change the separator (if it's present on current theme) to blocks-tiny style.
fancygit --separator-curve Change the separator (if it's present on current theme) to curve style.
fancygit --separator-fire Change the separator (if it's present on current theme) to fire style.
fancygit --separator-lego Change the separator (if it's present on current theme) to lego style.
fancygit --separator-paint Change the separator (if it's present on current theme) to paint style.
SET USER AND HOST NAME:
fancygit --set-user-name {name} Set the user name
fancygit --unset-user-name Restore the user name to default
fancygit --set-host-name {name} Set the host name
fancygit --unset-host-name Restore the host name to default
ICONS MEANING (rich notification area enabled):
The current directory is a git repository.
There are untracked files.
There are modified files.
There are added files waiting to be committed.
There are stashes.
There are commits waiting to be pushed.
Branch icon.
Current branch exists only locally.
Current branch has been merged into master branch.
You are working on a Python virtual environment.
ICONS MEANING (rich notification area disabled):
? There are untracked files.
+- There are modified files.
✔ There are added files waiting to be committed.
∿ There are stashes.
N^ There are N commits waiting to be pushed.
* Current branch exists only locally.
< Current branch has been merged into master branch.
ALIASES:
gs Show git status.
ga <file> [<other_file>] Add files in order to commit.
gap <file> Add part of a file in order to commit.
gaa Add all files in order to commit.
gd Clear screen and git diff.
gcm Start committing.
gcmm \"message\" Start committing with a message.
gpl Git pull.
gps Git push.
gplo <branch-name> Git pull from <branch-name> to current local branch.
gpso <branch-name> Git push from current local branch to <branch-name>.
gplob Git pull from remote current branch to local current branch.
gpsob Git push from local current branch to remote current branch.
gck <file> [<other_file>] Rollback file changes.
gckb <branch-name> Switch to a branch.
gckbt <branch-name> Switch to a branch with --track option.
gcb <branch-name> Create and switch to the new branch.
gdb <branch-name> Delete a local branch.
gdbr <branch-name> Delete a remote branch.
grb <new-branch-name> Rename a local branch.
grba <new-branch-name> Rename a branch (local and remote).
gl Show git log.
glp Show compact git log.
gdof Remove all .orig files from project.
gfi Ignore a file even if this one has already been tracked.
gurl Show git repository URL.
guser Show git user information.
glp Show pretty git log.
gst Create new stash with default message.
gstl List all stashes.
gstm \"message\" Create new stash with custom message.
gstw <stash_id> Show stash diffs by its numeric ID.
gsta <stash_id> Apply stash by its numeric ID.
gstd <stash_id> Drop a specific stash by its numeric ID.
gg \"message\" Add all changes, then commit and push them.
gu <file> [<other_file>] Remove files from staging area.
pve Show the current Python virtual environment name.
By: Diogo Alexsander Cavilha <[email protected]>
Date: 02.28.2016
Source code available at: <https://github.com/diogocavilha/fancy-git>
"