forked from diogocavilha/fancy-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
help.sh
112 lines (97 loc) · 5.42 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
#!/bin/bash
#
# Author: Diogo Alexsander Cavilha <[email protected]>
# Date: 11.18.2017
#
# It prints the help text.
. ~/.fancy-git/version.sh
fg_current_year=$(date +%Y)
echo " Fancy Git v$FANCYGIT_VERSION - $fg_current_year by Diogo Alexsander Cavilha <[email protected]>.
Prompt changer to show a few cool git informations about your repository on terminal.
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 configure-fonts Install font in order to render icons properly. (only for colored styles).
fancygit --colors Show color scheme to use on git management process, like on \"git status\" command.
fancygit --colors-set Apply the color scheme.
fancygit --full-path-disable Fancygit will show only the the directory name you are working on. Not the entire path.
fancygit --full-path-enable Fancygit will show the entire path.
fancygit --config-list Show fancygit config.
fancygit --config-reset Show fancygit config.
STYLES
fancygit simple Change prompt to the simple style.
fancygit simple-double-line Change prompt to the simple style in double line.
fancygit default Change prompt to the default (colored) style. (This is the fallback style).
fancygit double-line Change prompt to the default (colored) style in double line.
fancygit human Change prompt to the human readable style.
fancygit human-single-line Change prompt to the human readable style on single line.
fancygit human-dark Change prompt to the human readable style.
fancygit human-dark-single-line Change prompt to the human readable style on single line.
fancygit dark Change prompt to the dark style.
fancygit dark-double-line Change prompt to the dark style in double line.
fancygit dark-col-double-line Change prompt to the dark (colored) style in double line.
fancygit light Change prompt to the light style.
fancygit light-double-line Change prompt to the light style in double line.
ICONS MEANING
= 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 FOR SIMPLE STYLE
? = 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.
If a branch name is followed by an asterisk (*), it means that the branch exists only locally.
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>
"