Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
: 172.16.0.66 | : 172.16.0.254
Cant Read [ /etc/named.conf ]
7.3.25
SYSTEM
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
[ A ]
[ C ]
[ D ]
C: /
laragon /
bin /
git /
usr /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
core_perl
[ DIR ]
drwxrwxrwx
vendor_perl
[ DIR ]
drwxrwxrwx
[.exe
70.72
KB
-rwxrwxrwx
addgnupghome
3
KB
-rw-rw-rw-
applygnupgdefaults
2.17
KB
-rw-rw-rw-
arch.exe
35.04
KB
-rwxrwxrwx
astextplain
748
B
-rw-rw-rw-
autopoint
26.41
KB
-rw-rw-rw-
awk.exe
612.76
KB
-rwxrwxrwx
b2sum.exe
54.09
KB
-rwxrwxrwx
backup
7.17
KB
-rw-rw-rw-
base32.exe
40.84
KB
-rwxrwxrwx
base64.exe
40.84
KB
-rwxrwxrwx
basename.exe
34.07
KB
-rwxrwxrwx
basenc.exe
48.34
KB
-rwxrwxrwx
bash.exe
2.16
MB
-rwxrwxrwx
bashbug
6.58
KB
-rw-rw-rw-
bunzip2.exe
90.02
KB
-rwxrwxrwx
bzcat.exe
90.02
KB
-rwxrwxrwx
bzcmp
2.09
KB
-rw-rw-rw-
bzdiff
2.09
KB
-rw-rw-rw-
bzegrep
2.01
KB
-rw-rw-rw-
bzfgrep
2.01
KB
-rw-rw-rw-
bzgrep
2.01
KB
-rw-rw-rw-
bzip2.exe
90.02
KB
-rwxrwxrwx
bzip2recover.exe
14.31
KB
-rwxrwxrwx
bzless
1.27
KB
-rw-rw-rw-
c_rehash
6.59
KB
-rw-rw-rw-
captoinfo.exe
76.5
KB
-rwxrwxrwx
cat.exe
37.81
KB
-rwxrwxrwx
chattr.exe
97.7
KB
-rwxrwxrwx
chcon.exe
58.7
KB
-rwxrwxrwx
chgrp.exe
65.01
KB
-rwxrwxrwx
chmod.exe
57.55
KB
-rwxrwxrwx
chown.exe
67.58
KB
-rwxrwxrwx
chroot.exe
42.63
KB
-rwxrwxrwx
cksum.exe
36.2
KB
-rwxrwxrwx
clear.exe
10.5
KB
-rwxrwxrwx
cmp.exe
47.58
KB
-rwxrwxrwx
column.exe
43.06
KB
-rwxrwxrwx
comm.exe
39.29
KB
-rwxrwxrwx
cp.exe
111.97
KB
-rwxrwxrwx
csplit.exe
109.58
KB
-rwxrwxrwx
cut.exe
44.04
KB
-rwxrwxrwx
cygcheck.exe
933.96
KB
-rwxrwxrwx
cygpath.exe
155.33
KB
-rwxrwxrwx
cygwin-console-helper.exe
306.34
KB
-rwxrwxrwx
d2u.exe
50.1
KB
-rwxrwxrwx
dash.exe
107.13
KB
-rwxrwxrwx
date.exe
117.36
KB
-rwxrwxrwx
dd.exe
88.61
KB
-rwxrwxrwx
df.exe
102.44
KB
-rwxrwxrwx
diff.exe
206.81
KB
-rwxrwxrwx
diff3.exe
61.81
KB
-rwxrwxrwx
dir.exe
145.98
KB
-rwxrwxrwx
dircolors.exe
56.13
KB
-rwxrwxrwx
dirmngr-client.exe
92.7
KB
-rwxrwxrwx
dirmngr.exe
368.09
KB
-rwxrwxrwx
dirname.exe
34.01
KB
-rwxrwxrwx
docx2txt
3.28
KB
-rw-rw-rw-
docx2txt.pl
21.07
KB
-rw-rw-rw-
dos2unix.exe
50.1
KB
-rwxrwxrwx
du.exe
164.46
KB
-rwxrwxrwx
dumpsexp.exe
16.13
KB
-rwxrwxrwx
echo.exe
34.92
KB
-rwxrwxrwx
egrep
28
B
-rw-rw-rw-
env.exe
43.14
KB
-rwxrwxrwx
envsubst.exe
34.4
KB
-rwxrwxrwx
ex.exe
3.3
MB
-rwxrwxrwx
expand.exe
37.77
KB
-rwxrwxrwx
expr.exe
108.52
KB
-rwxrwxrwx
factor.exe
75.67
KB
-rwxrwxrwx
false.exe
32.35
KB
-rwxrwxrwx
fgrep
28
B
-rw-rw-rw-
fido2-assert.exe
31.63
KB
-rwxrwxrwx
fido2-cred.exe
29.8
KB
-rwxrwxrwx
fido2-token.exe
43.73
KB
-rwxrwxrwx
file.exe
23.7
KB
-rwxrwxrwx
find.exe
261.22
KB
-rwxrwxrwx
findssl.sh
4.68
KB
-rw-rw-rw-
fmt.exe
42.31
KB
-rwxrwxrwx
fold.exe
37.31
KB
-rwxrwxrwx
funzip.exe
32.84
KB
-rwxrwxrwx
gawk-5.0.0.exe
612.76
KB
-rwxrwxrwx
gawk.exe
612.76
KB
-rwxrwxrwx
gencat.exe
106.2
KB
-rwxrwxrwx
getconf.exe
104.41
KB
-rwxrwxrwx
getemojis
5.08
KB
-rw-rw-rw-
getfacl.exe
94.59
KB
-rwxrwxrwx
getopt.exe
17.21
KB
-rwxrwxrwx
gettext.exe
34.92
KB
-rwxrwxrwx
gettext.sh
5.07
KB
-rw-rw-rw-
gettextize
41.28
KB
-rw-rw-rw-
git-flow
6.77
KB
-rw-rw-rw-
git-flow-bugfix
24.03
KB
-rw-rw-rw-
git-flow-config
8.42
KB
-rw-rw-rw-
git-flow-feature
24.11
KB
-rw-rw-rw-
git-flow-hotfix
23.7
KB
-rw-rw-rw-
git-flow-init
15.13
KB
-rw-rw-rw-
git-flow-log
2.73
KB
-rw-rw-rw-
git-flow-release
37.06
KB
-rw-rw-rw-
git-flow-support
6.79
KB
-rw-rw-rw-
git-flow-version
2.12
KB
-rw-rw-rw-
gitflow-common
19.37
KB
-rw-rw-rw-
gitflow-shFlags
34.8
KB
-rw-rw-rw-
gkill.exe
35.72
KB
-rwxrwxrwx
gmondump.exe
93.48
KB
-rwxrwxrwx
gpg-agent.exe
364.28
KB
-rwxrwxrwx
gpg-connect-agent.exe
134.12
KB
-rwxrwxrwx
gpg-error.exe
32.03
KB
-rwxrwxrwx
gpg-wks-server.exe
174.28
KB
-rwxrwxrwx
gpg.exe
985
KB
-rwxrwxrwx
gpgconf.exe
137.99
KB
-rwxrwxrwx
gpgparsemail.exe
27.39
KB
-rwxrwxrwx
gpgscm.exe
218.09
KB
-rwxrwxrwx
gpgsm.exe
460.82
KB
-rwxrwxrwx
gpgsplit.exe
62.88
KB
-rwxrwxrwx
gpgtar.exe
126.54
KB
-rwxrwxrwx
gpgv.exe
420.38
KB
-rwxrwxrwx
grep.exe
210.2
KB
-rwxrwxrwx
groups.exe
35.73
KB
-rwxrwxrwx
gunzip
2.29
KB
-rw-rw-rw-
gzexe
6.3
KB
-rw-rw-rw-
gzip.exe
102.58
KB
-rwxrwxrwx
head.exe
44.35
KB
-rwxrwxrwx
hmac256.exe
16.17
KB
-rwxrwxrwx
hostid.exe
32.53
KB
-rwxrwxrwx
hostname.exe
33.1
KB
-rwxrwxrwx
iconv.exe
35.27
KB
-rwxrwxrwx
id.exe
42.93
KB
-rwxrwxrwx
infocmp.exe
53.5
KB
-rwxrwxrwx
infotocap.exe
76.5
KB
-rwxrwxrwx
install.exe
144.97
KB
-rwxrwxrwx
join.exe
50.02
KB
-rwxrwxrwx
kbxutil.exe
144.09
KB
-rwxrwxrwx
kill.exe
118.1
KB
-rwxrwxrwx
ldd.exe
121.37
KB
-rwxrwxrwx
ldh.exe
146.5
KB
-rwxrwxrwx
less.exe
173.75
KB
-rwxrwxrwx
lessecho.exe
11.98
KB
-rwxrwxrwx
lesskey.exe
17.13
KB
-rwxrwxrwx
link.exe
33.03
KB
-rwxrwxrwx
ln.exe
75.27
KB
-rwxrwxrwx
locale.exe
131.97
KB
-rwxrwxrwx
locate.exe
143.8
KB
-rwxrwxrwx
logname.exe
33.06
KB
-rwxrwxrwx
ls.exe
145.98
KB
-rwxrwxrwx
lsattr.exe
96.09
KB
-rwxrwxrwx
mac2unix.exe
50.1
KB
-rwxrwxrwx
md5sum.exe
45.93
KB
-rwxrwxrwx
minidumper.exe
100.13
KB
-rwxrwxrwx
mintheme
12.38
KB
-rw-rw-rw-
mintty.exe
991.91
KB
-rwxrwxrwx
mkdir.exe
69.76
KB
-rwxrwxrwx
mkfifo.exe
35.71
KB
-rwxrwxrwx
mkgroup.exe
126.55
KB
-rwxrwxrwx
mknod.exe
38.81
KB
-rwxrwxrwx
mkpasswd.exe
125.9
KB
-rwxrwxrwx
mktemp.exe
43.16
KB
-rwxrwxrwx
mount.exe
121.09
KB
-rwxrwxrwx
mpicalc.exe
17.69
KB
-rwxrwxrwx
msgattrib.exe
24.61
KB
-rwxrwxrwx
msgcat.exe
23.55
KB
-rwxrwxrwx
msgcmp.exe
24.53
KB
-rwxrwxrwx
msgcomm.exe
23.82
KB
-rwxrwxrwx
msgconv.exe
20.46
KB
-rwxrwxrwx
msgen.exe
20.48
KB
-rwxrwxrwx
msgexec.exe
19.08
KB
-rwxrwxrwx
msgfilter.exe
28.04
KB
-rwxrwxrwx
msgfmt.exe
78.19
KB
-rwxrwxrwx
msggrep.exe
104.85
KB
-rwxrwxrwx
msginit.exe
46.47
KB
-rwxrwxrwx
msgmerge.exe
53.52
KB
-rwxrwxrwx
msgunfmt.exe
32.65
KB
-rwxrwxrwx
msguniq.exe
23.06
KB
-rwxrwxrwx
msys-2.0.dll
3.46
MB
-rw-rw-rw-
msys-apr-1-0.dll
173.35
KB
-rw-rw-rw-
msys-aprutil-1-0.dll
128.24
KB
-rw-rw-rw-
msys-asn1-8.dll
508.54
KB
-rw-rw-rw-
msys-assuan-0.dll
66.43
KB
-rw-rw-rw-
msys-bz2-1.dll
65.7
KB
-rw-rw-rw-
msys-cbor-0.8.dll
48.39
KB
-rw-rw-rw-
msys-com_err-1.dll
9.87
KB
-rw-rw-rw-
msys-crypt-0.dll
39.37
KB
-rw-rw-rw-
msys-crypto-1.1.dll
2.37
MB
-rw-rw-rw-
msys-edit-0.dll
175.37
KB
-rw-rw-rw-
msys-expat-1.dll
168.06
KB
-rw-rw-rw-
msys-ffi-8.dll
16.2
KB
-rw-rw-rw-
msys-fido2-1.dll
146.47
KB
-rw-rw-rw-
msys-gcc_s-seh-1.dll
74.26
KB
-rw-rw-rw-
msys-gcrypt-20.dll
796.8
KB
-rw-rw-rw-
msys-gettextlib-0-21.dll
1.3
MB
-rw-rw-rw-
msys-gettextsrc-0-21.dll
290.07
KB
-rw-rw-rw-
msys-gmp-10.dll
572.07
KB
-rw-rw-rw-
msys-gnutls-30.dll
1.7
MB
-rw-rw-rw-
msys-gpg-error-0.dll
129.06
KB
-rw-rw-rw-
msys-gssapi-3.dll
218.93
KB
-rw-rw-rw-
msys-hcrypto-4.dll
192.3
KB
-rw-rw-rw-
msys-heimbase-1.dll
49.22
KB
-rw-rw-rw-
msys-heimntlm-0.dll
31.49
KB
-rw-rw-rw-
msys-hogweed-6.dll
263.05
KB
-rw-rw-rw-
msys-hx509-5.dll
270.65
KB
-rw-rw-rw-
msys-iconv-2.dll
1.03
MB
-rw-rw-rw-
msys-idn2-0.dll
188.5
KB
-rw-rw-rw-
msys-intl-8.dll
44.82
KB
-rw-rw-rw-
msys-kafs-0.dll
27.91
KB
-rw-rw-rw-
msys-krb5-26.dll
463.02
KB
-rw-rw-rw-
msys-ksba-8.dll
235.48
KB
-rw-rw-rw-
msys-lz4-1.dll
134.29
KB
-rw-rw-rw-
msys-magic-1.dll
154.16
KB
-rw-rw-rw-
msys-mpfr-6.dll
613.22
KB
-rw-rw-rw-
msys-ncursesw6.dll
327.75
KB
-rw-rw-rw-
msys-nettle-8.dll
266.42
KB
-rw-rw-rw-
msys-npth-0.dll
15.69
KB
-rw-rw-rw-
msys-p11-kit-0.dll
1017.07
KB
-rw-rw-rw-
msys-pcre-1.dll
279.49
KB
-rw-rw-rw-
msys-pcre2-8-0.dll
373.96
KB
-rw-rw-rw-
msys-pcre2-posix-3.dll
10.6
KB
-rw-rw-rw-
msys-perl5_36.dll
3.35
MB
-rw-rw-rw-
msys-psl-5.dll
67.77
KB
-rw-rw-rw-
msys-readline8.dll
253.14
KB
-rw-rw-rw-
msys-roken-18.dll
64.53
KB
-rw-rw-rw-
msys-sasl2-3.dll
98.6
KB
-rw-rw-rw-
msys-serf-1-0.dll
97.39
KB
-rw-rw-rw-
msys-smartcols-1.dll
159.86
KB
-rw-rw-rw-
msys-sqlite3-0.dll
1.28
MB
-rw-rw-rw-
msys-ssl-1.1.dll
516.55
KB
-rw-rw-rw-
msys-svn_client-1-0.dll
582.39
KB
-rw-rw-rw-
msys-svn_delta-1-0.dll
106.32
KB
-rw-rw-rw-
msys-svn_diff-1-0.dll
87.5
KB
-rw-rw-rw-
msys-svn_fs-1-0.dll
43.86
KB
-rw-rw-rw-
msys-svn_fs_fs-1-0.dll
298.95
KB
-rw-rw-rw-
msys-svn_fs_util-1-0.dll
12.77
KB
-rw-rw-rw-
msys-svn_fs_x-1-0.dll
290.76
KB
-rw-rw-rw-
msys-svn_ra-1-0.dll
50.27
KB
-rw-rw-rw-
msys-svn_ra_local-1-0.dll
37.99
KB
-rw-rw-rw-
msys-svn_ra_serf-1-0.dll
187.26
KB
-rw-rw-rw-
msys-svn_ra_svn-1-0.dll
122.63
KB
-rw-rw-rw-
msys-svn_repos-1-0.dll
239.62
KB
-rw-rw-rw-
msys-svn_subr-1-0.dll
764.46
KB
-rw-rw-rw-
msys-svn_swig_perl-1-0.dll
41.29
KB
-rw-rw-rw-
msys-svn_wc-1-0.dll
697.66
KB
-rw-rw-rw-
msys-tasn1-6.dll
68.97
KB
-rw-rw-rw-
msys-ticw6.dll
61.04
KB
-rw-rw-rw-
msys-unistring-2.dll
1.73
MB
-rw-rw-rw-
msys-uuid-1.dll
27
KB
-rw-rw-rw-
msys-wind-0.dll
160.61
KB
-rw-rw-rw-
msys-z.dll
86.07
KB
-rw-rw-rw-
mv.exe
119.56
KB
-rwxrwxrwx
nano.exe
355.39
KB
-rwxrwxrwx
nettle-hash.exe
18.03
KB
-rwxrwxrwx
nettle-lfib-stream.exe
10.03
KB
-rwxrwxrwx
nettle-pbkdf2.exe
18.11
KB
-rwxrwxrwx
ngettext.exe
34.95
KB
-rwxrwxrwx
nice.exe
35.67
KB
-rwxrwxrwx
nl.exe
101.62
KB
-rwxrwxrwx
nohup.exe
35.74
KB
-rwxrwxrwx
notepad
635
B
-rw-rw-rw-
nproc.exe
35.8
KB
-rwxrwxrwx
numfmt.exe
60.02
KB
-rwxrwxrwx
od.exe
84.71
KB
-rwxrwxrwx
openssl.exe
661.67
KB
-rwxrwxrwx
p11-kit.exe
31.25
KB
-rwxrwxrwx
passwd.exe
124.37
KB
-rwxrwxrwx
paste.exe
36.71
KB
-rwxrwxrwx
patch.exe
169.93
KB
-rwxrwxrwx
pathchk.exe
34.53
KB
-rwxrwxrwx
perl.exe
14.05
KB
-rwxrwxrwx
perl5.36.0.exe
14.05
KB
-rwxrwxrwx
pinentry-w32.exe
77.14
KB
-rwxrwxrwx
pinentry.exe
77.14
KB
-rwxrwxrwx
pinky.exe
40.13
KB
-rwxrwxrwx
pkcs1-conv.exe
22.91
KB
-rwxrwxrwx
pldd.exe
88.84
KB
-rwxrwxrwx
pluginviewer.exe
17.31
KB
-rwxrwxrwx
pr.exe
71.9
KB
-rwxrwxrwx
printenv.exe
33
KB
-rwxrwxrwx
printf.exe
70.32
KB
-rwxrwxrwx
profiler.exe
198.36
KB
-rwxrwxrwx
ps.exe
110.52
KB
-rwxrwxrwx
psl-make-dafsa
22.25
KB
-rw-rw-rw-
psl.exe
17.16
KB
-rwxrwxrwx
ptx.exe
127.23
KB
-rwxrwxrwx
pwd.exe
35.3
KB
-rwxrwxrwx
readlink.exe
47.35
KB
-rwxrwxrwx
realpath.exe
48.41
KB
-rwxrwxrwx
rebase.exe
880.24
KB
-rwxrwxrwx
rebaseall
6.98
KB
-rw-rw-rw-
recode-sr-latin.exe
16.61
KB
-rwxrwxrwx
regtool.exe
129.72
KB
-rwxrwxrwx
reset.exe
21.5
KB
-rwxrwxrwx
restore
5.86
KB
-rw-rw-rw-
rm.exe
62.32
KB
-rwxrwxrwx
rmdir.exe
60.79
KB
-rwxrwxrwx
rnano.exe
355.39
KB
-rwxrwxrwx
runcon.exe
34
KB
-rwxrwxrwx
rview.exe
3.31
MB
-rwxrwxrwx
rvim.exe
3.31
MB
-rwxrwxrwx
scp.exe
214.28
KB
-rwxrwxrwx
sdiff.exe
53.15
KB
-rwxrwxrwx
sed.exe
171.92
KB
-rwxrwxrwx
seq.exe
66.88
KB
-rwxrwxrwx
setfacl.exe
115.84
KB
-rwxrwxrwx
setmetamode.exe
83.06
KB
-rwxrwxrwx
sexp-conv.exe
29.17
KB
-rwxrwxrwx
sftp.exe
223.69
KB
-rwxrwxrwx
sh.exe
2.16
MB
-rwxrwxrwx
sha1sum.exe
48.93
KB
-rwxrwxrwx
sha224sum.exe
54.93
KB
-rwxrwxrwx
sha256sum.exe
54.93
KB
-rwxrwxrwx
sha384sum.exe
59.93
KB
-rwxrwxrwx
sha512sum.exe
59.93
KB
-rwxrwxrwx
shred.exe
57.14
KB
-rwxrwxrwx
shuf.exe
52.89
KB
-rwxrwxrwx
sleep.exe
35.16
KB
-rwxrwxrwx
sort.exe
107.02
KB
-rwxrwxrwx
split.exe
52.91
KB
-rwxrwxrwx
ssh-add.exe
421.47
KB
-rwxrwxrwx
ssh-agent.exe
392.86
KB
-rwxrwxrwx
ssh-copy-id
12.38
KB
-rw-rw-rw-
ssh-keygen.exe
542.35
KB
-rwxrwxrwx
ssh-keyscan.exe
503.31
KB
-rwxrwxrwx
ssh-pageant.exe
21.11
KB
-rwxrwxrwx
ssh.exe
920.77
KB
-rwxrwxrwx
sshd.exe
974.1
KB
-rwxrwxrwx
ssp.exe
121.02
KB
-rwxrwxrwx
start
246
B
-rw-rw-rw-
stat.exe
94.93
KB
-rwxrwxrwx
stdbuf.exe
67.41
KB
-rwxrwxrwx
strace.exe
469.81
KB
-rwxrwxrwx
stty.exe
88.63
KB
-rwxrwxrwx
sum.exe
41.96
KB
-rwxrwxrwx
sync.exe
33.62
KB
-rwxrwxrwx
tabs.exe
15.5
KB
-rwxrwxrwx
tac.exe
105.21
KB
-rwxrwxrwx
tail.exe
55.29
KB
-rwxrwxrwx
tar.exe
479.2
KB
-rwxrwxrwx
tee.exe
37.88
KB
-rwxrwxrwx
test.exe
68.68
KB
-rwxrwxrwx
tic.exe
76.5
KB
-rwxrwxrwx
tig.exe
646.82
KB
-rwxrwxrwx
timeout.exe
40.77
KB
-rwxrwxrwx
toe.exe
14.5
KB
-rwxrwxrwx
touch.exe
104.94
KB
-rwxrwxrwx
tput.exe
20
KB
-rwxrwxrwx
tr.exe
48.3
KB
-rwxrwxrwx
true.exe
32.35
KB
-rwxrwxrwx
truncate.exe
38.75
KB
-rwxrwxrwx
trust.exe
178.88
KB
-rwxrwxrwx
tset.exe
21.5
KB
-rwxrwxrwx
tsort.exe
47.79
KB
-rwxrwxrwx
tty.exe
32.53
KB
-rwxrwxrwx
tzset.exe
134.34
KB
-rwxrwxrwx
u2d.exe
50.1
KB
-rwxrwxrwx
umount.exe
87.75
KB
-rwxrwxrwx
uname.exe
35.04
KB
-rwxrwxrwx
uncompress
2.29
KB
-rw-rw-rw-
unexpand.exe
38.31
KB
-rwxrwxrwx
uniq.exe
43.96
KB
-rwxrwxrwx
unix2dos.exe
50.1
KB
-rwxrwxrwx
unix2mac.exe
50.1
KB
-rwxrwxrwx
unlink.exe
33.03
KB
-rwxrwxrwx
unzip.exe
169.64
KB
-rwxrwxrwx
unzipsfx.exe
81.21
KB
-rwxrwxrwx
update-ca-trust
1.34
KB
-rw-rw-rw-
updatedb
8.88
KB
-rw-rw-rw-
users.exe
34.26
KB
-rwxrwxrwx
vdir.exe
145.98
KB
-rwxrwxrwx
vi
25
B
-rw-rw-rw-
view.exe
3.31
MB
-rwxrwxrwx
vim.exe
3.31
MB
-rwxrwxrwx
vimdiff.exe
3.31
MB
-rwxrwxrwx
vimtutor
2.1
KB
-rw-rw-rw-
watchgnupg.exe
15.59
KB
-rwxrwxrwx
wc.exe
46.26
KB
-rwxrwxrwx
which.exe
29.82
KB
-rwxrwxrwx
who.exe
68.64
KB
-rwxrwxrwx
whoami.exe
33.09
KB
-rwxrwxrwx
winpty-agent.exe
880.5
KB
-rwxrwxrwx
winpty-debugserver.exe
772.5
KB
-rwxrwxrwx
winpty.dll
811.5
KB
-rw-rw-rw-
winpty.exe
731.5
KB
-rwxrwxrwx
wordpad
635
B
-rw-rw-rw-
xargs.exe
66.76
KB
-rwxrwxrwx
xgettext.exe
281.8
KB
-rwxrwxrwx
xxd.exe
19.04
KB
-rwxrwxrwx
yat2m.exe
31.23
KB
-rwxrwxrwx
yes.exe
33.03
KB
-rwxrwxrwx
zcat
1.94
KB
-rw-rw-rw-
zcmp
1.64
KB
-rw-rw-rw-
zdiff
6.31
KB
-rw-rw-rw-
zegrep
29
B
-rw-rw-rw-
zfgrep
29
B
-rw-rw-rw-
zforce
2.03
KB
-rw-rw-rw-
zgrep
7.92
KB
-rw-rw-rw-
zipgrep
2.88
KB
-rw-rw-rw-
zipinfo.exe
169.64
KB
-rwxrwxrwx
zless
2.15
KB
-rw-rw-rw-
znew
4.47
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : git-flow-feature
# $Id$ # vim:et:ft=sh:sts=2:sw=2 # # git-flow -- A collection of Git extensions to provide high-level # repository operations for Vincent Driessen's branching model. # # A blog post presenting this model is found at: # http://blog.avirtualhome.com/development-workflow-using-git/ # # Feel free to contribute to this project at: # http://github.com/petervanderdoes/gitflow # # Authors: # Copyright 2012-2019 Peter van der Does. All rights reserved. # # Original Author: # Copyright 2010 Vincent Driessen. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # initialize() { require_git_repo require_gitflow_initialized git config --get gitflow.prefix.feature >/dev/null 2>&1 || die "Feature prefix not set. Please run 'git flow init'." gitflow_load_settings PREFIX=$(git config --get gitflow.prefix.feature) } usage() { OPTIONS_SPEC="\ git flow feature [list] git flow feature start git flow feature finish git flow feature publish git flow feature track git flow feature diff git flow feature rebase git flow feature checkout git flow feature pull git flow feature delete Manage your feature branches. For more specific help type the command followed by --help -- " flags_help } cmd_default() { cmd_list "$@" } cmd_list() { OPTIONS_SPEC="\ git flow feature [list] [-h] [-v] Lists all the existing feature branches in the local repository. -- h,help! Show this help v,verbose Verbose (more) output " local feature_branches current_branch width branch len local base develop_sha branch_sha # Define flags DEFINE_boolean 'verbose' false 'verbose (more) output' v # Parse argun=ments parse_args "$@" feature_branches=$(git_local_branches_prefixed "$PREFIX") if [ -z "$feature_branches" ]; then warn "No feature branches exist." warn "" warn "You can start a new feature branch:" warn "" warn " git flow feature start <name> [<base>]" warn "" exit 0 fi current_branch=$(git_current_branch) # Determine column width first width=0 for branch in $feature_branches; do len=${#branch} width=$(max $width $len) done width=$(($width+3-${#PREFIX})) for branch in $feature_branches; do base=$(git merge-base "$branch" "$DEVELOP_BRANCH") develop_sha=$(git rev-parse "$DEVELOP_BRANCH") branch_sha=$(git rev-parse "$branch") if [ "$branch" = "$current_branch" ]; then printf "* " else printf " " fi if flag verbose; then printf "%-${width}s" "${branch#$PREFIX}" if [ "$branch_sha" = "$develop_sha" ]; then printf "(no commits yet)" elif [ "$base" = "$branch_sha" ]; then printf "(is behind develop, may ff)" elif [ "$base" = "$develop_sha" ]; then printf "(based on latest develop)" else printf "(may be rebased)" fi else printf "%s" "${branch#$PREFIX}" fi echo done } cmd_help() { usage exit 0 } # Parse arguments and set common variables parse_args() { FLAGS "$@" || exit $? eval set -- "${FLAGS_ARGV}" # read arguments into global variables if [ -z $1 ]; then NAME='' else NAME=$1 fi BRANCH=$PREFIX$NAME } parse_remote_name() { # Parse arguments FLAGS "$@" || exit $? eval set -- "${FLAGS_ARGV}" # read arguments into global variables if [ -z $1 ]; then REMOTE='' else REMOTE=$1 fi if [ -z $2 ]; then NAME='' else NAME=$2 fi BRANCH=$PREFIX$NAME } cmd_start() { OPTIONS_SPEC="\ git flow feature start [-h] [-F] <name> [<base>] Start new feature <name>, optionally basing it on <base> instead of <develop> -- h,help! Show this help showcommands! Show git commands while executing them F,[no]fetch Fetch from origin before performing local operation " local base # Define flags DEFINE_boolean 'fetch' false 'fetch from origin before performing local operation' F # Override defaults with values from config gitflow_override_flag_boolean "feature.start.fetch" "fetch" # Parse arguments parse_args "$@" eval set -- "${FLAGS_ARGV}" base=${2:-$DEVELOP_BRANCH} require_base_is_local_branch "$base" gitflow_require_name_arg # Update the local repo with remote changes, if asked if flag fetch; then git_fetch_branch "$ORIGIN" "$base" fi # Sanity checks require_branch_absent "$BRANCH" # If the origin branch counterpart exists, assert that the local branch # isn't behind it (to avoid unnecessary rebasing) if git_remote_branch_exists "$ORIGIN/$base"; then require_branches_equal "$base" "$ORIGIN/$base" fi run_pre_hook "$NAME" "$ORIGIN" "$BRANCH" "$base" gitflow_config_set_base_branch $base $BRANCH # create branch git_do checkout -b "$BRANCH" "$base" || die "Could not create feature branch '$BRANCH'." run_post_hook "$NAME" "$ORIGIN" "$BRANCH" "$base" echo echo "Summary of actions:" echo "- A new branch '$BRANCH' was created, based on '$base'" echo "- You are now on branch '$(git_current_branch)'" echo "" echo "Now, start committing on your feature. When done, use:" echo "" echo " git flow feature finish $NAME" echo } cmd_finish() { OPTIONS_SPEC="\ git flow feature finish [-h] [-F] [-r] [-p] [-k] [-D] [-S] [--no-ff] <name|nameprefix> Finish feature <name> -- h,help! Show this help showcommands! Show git commands while executing them F,[no]fetch Fetch from origin before performing finish r,[no]rebase Rebase before merging p,[no]preserve-merges Preserve merges while rebasing [no]push Push to origin after performing finish k,[no]keep Keep branch after performing finish keepremote! Keep the remote branch keeplocal! Keep the local branch D,[no]force_delete Force delete feature branch after finish S,[no]squash Squash feature during merge no-ff! Never fast-forward during the merge " local finish_base # Define flags DEFINE_boolean 'fetch' false "fetch from $ORIGIN before performing finish" F DEFINE_boolean 'rebase' false "rebase before merging" r DEFINE_boolean 'preserve-merges' false 'try to recreate merges while rebasing' p DEFINE_boolean 'push' false "push to $ORIGIN after performing finish" DEFINE_boolean 'keep' false "keep branch after performing finish" k DEFINE_boolean 'keepremote' false "keep the remote branch" DEFINE_boolean 'keeplocal' false "keep the local branch" DEFINE_boolean 'force_delete' false "force delete feature branch after finish" D DEFINE_boolean 'squash' false "squash feature during merge" S DEFINE_boolean 'squash-info' false "add branch info during squash" DEFINE_boolean 'no-ff!' false "Don't fast-forward ever during merge " # Override defaults with values from config gitflow_override_flag_boolean "feature.finish.fetch" "fetch" gitflow_override_flag_boolean "feature.finish.rebase" "rebase" gitflow_override_flag_boolean "feature.finish.preserve-merges" "preserve_merges" gitflow_override_flag_boolean "feature.finish.push" "push" gitflow_override_flag_boolean "feature.finish.keep" "keep" gitflow_override_flag_boolean "feature.finish.keepremote" "keepremote" gitflow_override_flag_boolean "feature.finish.keeplocal" "keeplocal" gitflow_override_flag_boolean "feature.finish.force-delete" "force_delete" gitflow_override_flag_boolean "feature.finish.squash" "squash" gitflow_override_flag_boolean "feature.finish.squash-info" "squash_info" gitflow_override_flag_boolean "feature.finish.no-ff" "no_ff" # Parse arguments parse_args "$@" # Use current branch if no name is given if [ "$NAME" = "" ]; then gitflow_use_current_branch_name fi # Keeping both branches implies the --keep flag to be true. if flag keepremote && flag keeplocal; then FLAGS_keep=$FLAGS_TRUE fi # Sanity checks require_branch "$BRANCH" BASE_BRANCH=$(gitflow_config_get_base_branch $BRANCH) BASE_BRANCH=${BASE_BRANCH:-$DEVELOP_BRANCH} git_local_branch_exists "$BASE_BRANCH" || die "The base '$BASE_BRANCH' doesn't exists locally or is not a branch. Can't finish the feature branch '$BRANCH'." # Detect if we're restoring from a merge conflict if [ -f "$DOT_GIT_DIR/.gitflow/MERGE_BASE" ]; then # # TODO: detect that we're working on the correct branch here! # The user need not necessarily have given the same $NAME twice here # (although he/she should). # # TODO: git_is_clean_working_tree() should provide an alternative # exit code for "unmerged changes in working tree", which we should # actually be testing for here if git_is_clean_working_tree; then finish_base=$(cat "$DOT_GIT_DIR/.gitflow/MERGE_BASE") # Since the working tree is now clean, either the user did a # successful merge manually, or the merge was cancelled. # We detect this using git_is_branch_merged_into() if git_is_branch_merged_into "$BRANCH" "$finish_base"; then rm -f "$DOT_GIT_DIR/.gitflow/MERGE_BASE" helper_finish_cleanup exit 0 else # If the user cancelled the merge and decided to wait until # later,that's fine. But we have to acknowledge this by # removing the MERGE_BASE file and continuing normal execution # of the finish rm -f "$DOT_GIT_DIR/.gitflow/MERGE_BASE" fi else echo echo "Merge conflicts not resolved yet, use:" echo " git mergetool" echo " git commit" echo echo "You can then complete the finish by running it again:" echo " git flow feature finish $NAME" echo exit 1 fi fi # Sanity checks require_clean_working_tree # We always fetch the Branch from Origin # This is done to avoid possible commits on the remote that are not # merged into the local branch if git_remote_branch_exists "$ORIGIN/$BRANCH"; then git_fetch_branch "$ORIGIN" "$BRANCH" fi # Update local branches with remote branches if flag fetch; then git_fetch_branch "$ORIGIN" "$BASE_BRANCH" fi # Check if the local branches have all the commits from the remote branches if git_remote_branch_exists "$ORIGIN/$BRANCH"; then require_branches_equal "$BRANCH" "$ORIGIN/$BRANCH" fi if git_remote_branch_exists "$ORIGIN/$BASE_BRANCH"; then require_branches_equal "$BASE_BRANCH" "$ORIGIN/$BASE_BRANCH" fi run_pre_hook "$NAME" "$ORIGIN" "$BRANCH" # If the user wants to rebase, do that first if flag rebase; then local _rebase_opts="" if flag preserve_merges; then _rebase_opts="$_rebase_opts -p" fi if flag showcommands; then _rebase_opts="$_rebase_opts --showcommands" fi if ! git flow feature rebase $_rebase_opts "$NAME"; then warn "Finish was aborted due to conflicts during rebase." warn "Please finish the rebase manually now." warn "When finished, re-run:" warn " git flow feature finish '$NAME' '$BASE_BRANCH'" exit 1 fi fi # Merge into BASE git_do checkout "$BASE_BRANCH" || die "Could not check out branch '$BASE_BRANCH'." if noflag squash; then if flag no_ff; then git_do merge --no-ff "$BRANCH" else if [ "$(git rev-list -n2 "$BASE_BRANCH..$BRANCH" | wc -l)" -eq 1 ]; then git_do merge --ff "$BRANCH" else git_do merge --no-ff "$BRANCH" fi fi else git_do merge --squash "$BRANCH" flag squash_info && gitflow_create_squash_message "Merged feature branch '$BRANCH'" "$BASE_BRANCH" "$BRANCH" > "$DOT_GIT_DIR/SQUASH_MSG" git_do commit fi if [ $? -ne 0 ]; then # Oops.. we have a merge conflict! # Write the given $BASE_BRANCH to a temporary file as we will # be needing it later. mkdir -p "$DOT_GIT_DIR/.gitflow" echo "$BASE_BRANCH" > "$DOT_GIT_DIR/.gitflow/MERGE_BASE" echo echo "There were merge conflicts. To resolve the merge conflict manually, use:" echo " git mergetool" echo " git commit" echo echo "You can then complete the finish by running it again:" echo " git flow feature finish $NAME" echo exit 1 fi run_post_hook "$NAME" "$ORIGIN" "$BRANCH" # When no merge conflict is detected, just clean up the feature branch gitflow_config_remove_base_branch "$BRANCH" helper_finish_cleanup } helper_finish_cleanup() { local keepmsg remotebranchdeleted localbranchdeleted # Sanity checks require_branch "$BRANCH" require_clean_working_tree remotebranchdeleted=$FLAGS_FALSE localbranchdeleted=$FLAGS_FALSE if flag push; then git_do push "$ORIGIN" "$BASE_BRANCH" || die "Could not push branch '$BASE_BRANCH' to remote '$ORIGIN'." fi if noflag keep; then # Always delete remote first if noflag keepremote;then if git_remote_branch_exists "$ORIGIN/$BRANCH"; then git_remote_branch_delete "$BRANCH" && remotebranchdeleted=$FLAGS_TRUE fi fi # Delete local after remote to avoid warnings if noflag keeplocal; then if [ "$BRANCH" = "$(git_current_branch)" ]; then git_do checkout "$BASE_BRANCH" || die "Could not check out branch '$BASE_BRANCH'." fi if flag force_delete; then git_do branch -D "$BRANCH" && localbranchdeleted=$FLAGS_TRUE else if noflag squash; then git_do branch -d "$BRANCH" && localbranchdeleted=$FLAGS_TRUE else git_do branch -D "$BRANCH" && localbranchdeleted=$FLAGS_TRUE fi fi fi # no more branches: we can safely remove config section if ! git_remote_branch_exists "$ORIGIN/$BRANCH" -a ! git_local_branch_exists "$BRANCH"; then gitflow_config_remove_base_section "$BRANCH" fi fi echo echo "Summary of actions:" echo "- The feature branch '$BRANCH' was merged into '$BASE_BRANCH'" #echo "- Merge conflicts were resolved" # TODO: Add this line when it's supported if noflag keep; then if [ $localbranchdeleted -eq $FLAGS_TRUE ]; then keepmsg="has been locally deleted" else keepmsg="is still locally available" fi if [ $remotebranchdeleted -eq $FLAGS_TRUE ]; then keepmsg=$keepmsg"; it has been remotely deleted from '$ORIGIN'" elif git_remote_branch_exists "$ORIGIN/$BRANCH"; then keepmsg=$keepmsg"; it is still remotely available on '$ORIGIN'" fi else keepmsg="is still locally available" if git_remote_branch_exists "$ORIGIN/$BRANCH"; then keepmsg=$keepmsg"; it is still remotely available on '$ORIGIN'" fi fi echo "- Feature branch '$BRANCH' "$keepmsg echo "- You are now on branch '$(git_current_branch)'" echo } cmd_publish() { OPTIONS_SPEC="\ git flow feature publish [-h] [<name>] Publish feature branch <name> on $ORIGIN. When <name> is omitted the current branch is used, but only if it's a feature branch. -- h,help! Show this help showcommands! Show git commands while executing them " # Parse arguments parse_args "$@" # Use current branch if no name is given if [ "$NAME" = "" ]; then gitflow_use_current_branch_name fi # Sanity checks require_clean_working_tree require_branch "$BRANCH" git_do fetch -q "$ORIGIN" || die "Could not fetch branch '$BRANCH' from remote '$ORIGIN'." require_branch_absent "$ORIGIN/$BRANCH" run_pre_hook "$NAME" "$ORIGIN" "$BRANCH" # Create remote branch with remote tracking git_do push -u "$ORIGIN" "$BRANCH:$BRANCH" git_do fetch -q "$ORIGIN" "$BRANCH" || die "Could not fetch branch '$BRANCH' from remote '$ORIGIN'." git_do checkout "$BRANCH" || die "Could not check out branch '$BRANCH'." run_post_hook "$NAME" "$ORIGIN" "$BRANCH" echo echo "Summary of actions:" echo "- The remote branch '$BRANCH' was created or updated" echo "- The local branch '$BRANCH' was configured to track the remote branch" echo "- You are now on branch '$(git_current_branch)'" echo } cmd_track() { OPTIONS_SPEC="\ git flow feature track [-h] <name> Start tracking feature <name> that is shared on $ORIGIN -- h,help! Show this help showcommands! Show git commands while executing them " # Parse arguments parse_args "$@" gitflow_require_name_arg # Sanity checks require_clean_working_tree require_local_branch_absent "$BRANCH" run_pre_hook "$NAME" "$ORIGIN" "$BRANCH" git_do fetch -q "$ORIGIN" || die "Could not fetch branch '$BRANCH' from remote '$ORIGIN'." git_remote_branch_exists "$ORIGIN/$BRANCH" # Create tracking branch git_do checkout -b "$BRANCH" "$ORIGIN/$BRANCH" || die "Could not create '$BRANCH'." run_post_hook "$NAME" "$ORIGIN" "$BRANCH" echo echo "Summary of actions:" echo "- A new remote tracking branch '$BRANCH' was created" echo "- You are now on branch '$(git_current_branch)'" echo } cmd_diff() { OPTIONS_SPEC="\ git flow feature diff [-h] [<name|nameprefix>] Show all changes in <name> that are not in the base -- h,help! Show this help showcommands! Show git commands while executing them " local base # Parse arguments parse_args "$@" # Use current branch if no name is given if [ "$NAME" = "" ]; then gitflow_use_current_branch_name fi base=$(gitflow_config_get_base_branch $BRANCH) base=${base:-$DEVELOP_BRANCH} git_do diff "$base...$BRANCH" } cmd_checkout() { OPTIONS_SPEC="\ git flow feature checkout [-h] [<name|nameprefix>] Switch to feature branch <name> -- h,help! Show this help showcommands! Show git commands while executing them " # Parse arguments parse_args "$@" NAME=$(gitflow_resolve_nameprefix "$NAME" "$PREFIX") if [ $? -eq 0 ]; then BRANCH=$PREFIX$NAME git_do checkout "$BRANCH" || die "Could not check out branch '$BRANCH'." fi } cmd_co() { # Alias for checkout cmd_checkout "$@" } cmd_rebase() { OPTIONS_SPEC="\ git flow feature rebase [-h] [-i] [-p] [<name|nameprefix>] Rebase <name> on <base_branch> -- h,help! Show this help showcommands! Show git commands while executing them i,[no]interactive Do an interactive rebase p,[no]preserve-merges Preserve merges " local opts # Define flags DEFINE_boolean 'interactive' false 'do an interactive rebase' i DEFINE_boolean 'preserve-merges' false 'try to recreate merges' p # Override defaults with values from config gitflow_override_flag_boolean "feature.rebase.interactive" "interactive" gitflow_override_flag_boolean "feature.rebase.preserve-merges" "preserve_merges" # Parse arguments parse_args "$@" # Use current branch if no name is given if [ "$NAME" = "" ]; then gitflow_use_current_branch_name fi BASE_BRANCH=$(gitflow_config_get_base_branch $BRANCH) BASE_BRANCH=${BASE_BRANCH:-$DEVELOP_BRANCH} warn "Will try to rebase '$NAME' which is based on '$BASE_BRANCH'..." if ! git_config_bool_exists "rebase.autostash"; then require_clean_working_tree fi require_branch "$BRANCH" git_local_branch_exists "$BASE_BRANCH" || die "The base '$BASE_BRANCH' doesn't exists locally or is not a branch. Can't rebase the feature branch '$BRANCH'." git_do checkout -q "$BRANCH" || die "Could not check out branch '$BRANCH'." if flag interactive; then opts="$opts -i" fi if flag preserve_merges; then opts="$opts -p" fi git_do rebase $opts "$BASE_BRANCH" } avoid_accidental_cross_branch_action() { local current_branch current_branch=$(git_current_branch) if [ "$BRANCH" != "$current_branch" ]; then warn "Trying to pull from '$BRANCH' while currently on branch '$current_branch'." warn "To avoid unintended merges, git-flow aborted." return 1 fi return 0 } cmd_pull() { OPTIONS_SPEC="\ git flow feature pull [-h] <remote> [<name>] Pull feature <name> from <remote> -- h,help! Show this help showcommands! Show git commands while executing them " local current_branch # Define flags DEFINE_boolean 'rebase' false "pull with rebase" r warn "The command 'git flow feature pull' will be deprecated per version 2.0.0. Use 'git flow feature track' instead." # Parse arguments parse_remote_name "$@" if [ -z "$REMOTE" ]; then die "Name a remote explicitly." fi # Use current branch if no name is given if [ "$NAME" = "" ]; then gitflow_use_current_branch_name fi # To avoid accidentally merging different feature branches into each other, # die if the current feature branch differs from the requested $NAME # argument. current_branch=$(git_current_branch) if startswith "$current_branch" "$PREFIX"; then # We are on a local feature branch already, so $BRANCH must be equal to # the current branch avoid_accidental_cross_branch_action || die fi require_clean_working_tree run_pre_hook "$NAME" "$REMOTE" "$BRANCH" if git_local_branch_exists "$BRANCH"; then # Again, avoid accidental merges avoid_accidental_cross_branch_action || die # We already have a local branch called like this, so simply pull the # remote changes in if flag rebase; then if ! git_do pull --rebase -q "$REMOTE" "$BRANCH"; then warn "Pull was aborted. There might be conflicts during rebase or '$REMOTE' might be inaccessible." exit 1 fi else git_do pull -q "$REMOTE" "$BRANCH" || die "Failed to pull from remote '$REMOTE'." fi echo "Pulled $REMOTE's changes into $BRANCH." else # Setup the local branch clone for the first time git_do fetch -q "$REMOTE" "$BRANCH" || die "Could not fetch branch '$BRANCH' from remote '$REMOTE'." # Stores in FETCH_HEAD git_do branch --no-track "$BRANCH" FETCH_HEAD || die "Branch failed." git_do checkout -q "$BRANCH" || die "Could not check out branch '$BRANCH'." echo "Created local branch $BRANCH based on $REMOTE's $BRANCH." fi run_post_hook "$NAME" "$REMOTE" "$BRANCH" } cmd_delete() { OPTIONS_SPEC="\ git flow feature delete [-h] [-f] [-r] <name> Delete a given feature branch -- h,help! Show this help showcommands! Show git commands while executing them f,[no]force Force deletion r,[no]remote Delete remote branch " local current_branch # Define flags DEFINE_boolean 'force' false "force deletion" f DEFINE_boolean 'remote' false "delete remote branch" r # Override defaults with values from config gitflow_override_flag_boolean "feature.delete.force" "force" gitflow_override_flag_boolean "feature.delete.remote" "remote" # Parse arguments parse_args "$@" gitflow_require_name_arg # Sanity checks require_branch "$BRANCH" BASE_BRANCH=$(gitflow_config_get_base_branch $BRANCH) BASE_BRANCH=${BASE_BRANCH:-$DEVELOP_BRANCH} run_pre_hook "$NAME" "$ORIGIN" "$BRANCH" current_branch=$(git_current_branch) # We can't delete a branch we are on, switch to the develop branch. if [ "$BRANCH" = "$current_branch" ]; then require_clean_working_tree if git_local_branch_exists "$BASE_BRANCH"; then git_do checkout "$BASE_BRANCH" else git_do checkout "$DEVELOP_BRANCH" || die "Could not check out branch '$DEVELOP_BRANCH'." fi fi if git_is_branch_merged_into "$BRANCH" "$BASE_BRANCH"; then git_do branch -d "$BRANCH" || die "Could not delete the $BRANCH." if flag remote; then git_remote_branch_delete "$BRANCH" fi else if flag force; then git_do branch -D "$BRANCH" || die "Could not delete the $BRANCH." if flag remote; then git_remote_branch_delete "$BRANCH" fi else die "Feature branch '$BRANCH' has been not been merged yet. Use -f to force the deletion." fi fi gitflow_config_remove_base_section "$BRANCH" run_post_hook "$NAME" "$ORIGIN" "$BRANCH" echo echo "Summary of actions:" echo "- Feature branch '$BRANCH' has been deleted." flag remote && echo "- Feature branch '$BRANCH' in '$ORIGIN' has been deleted." echo "- You are now on branch '$(git_current_branch)'" echo } cmd_rename() { OPTIONS_SPEC="\ git flow feature rename <new_name> [<new_name>] Rename a given feature branch -- h,help! Show this help showcommands! Show git commands while executing them " gitflow_rename_branch "$@" }
Close