-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivate.bat
30 lines (26 loc) · 1.35 KB
/
activate.bat
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
@echo off
ECHO Configuring hooks path to %~dp0hooks
CALL git config --global core.hooksPath %~dp0hooks
ECHO Hooks configured
ECHO Configuring aliases
CALL git config --global --remove-section alias
CALL git config --global alias.co "checkout"
CALL git config --global alias.br "branch"
CALL git config --global alias.ci "commit"
CALL git config --global alias.st "status -s"
CALL git config --global alias.unstage "reset HEAD --"
CALL git config --global alias.last "log -1 HEAD"
CALL git config --global alias.lg "log --oneline"
CALL git config --global alias.glg "log --oneline --graph"
CALL git config --global alias.sync "^!(clear && git pull && git push && git st)"
CALL git config --global alias.ticket "^!(git unsetticket || true) && git config --local redmine.ticketcount 0 && git config --local redmine.ticket $1"
CALL git config --global alias.getticket "config --local redmine.ticket"
CALL git config --global alias.unsetticket "^!(git config --local --unset redmine.ticket && git config --local --unset redmine.ticketcount)"
CALL git config --global alias.conflicted "diff --name-only --diff-filter=U"
ECHO Aliases configured
ECHO Configuring autocrlf FALSE
CALL git config --global core.autocrlf false
ECHO autocrlf configured
ECHO Configuring parameters
CALL git config --global redmine.validatecommitmsg true
ECHO parameters configured