From f5c4671bfbad96bf346bd7e9a21fc4317b4959df Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 3 Dec 2022 17:00:20 +0530 Subject: Adds most of the tools --- alias/branches.bat | 3 +++ alias/branchs.bat | 3 +++ alias/g-push.bat | 4 ++++ alias/gg.bat | 3 +++ alias/gsts.bat | 3 +++ alias/s.ps1 | 3 +++ 6 files changed, 19 insertions(+) create mode 100644 alias/branches.bat create mode 100644 alias/branchs.bat create mode 100644 alias/g-push.bat create mode 100644 alias/gg.bat create mode 100644 alias/gsts.bat create mode 100644 alias/s.ps1 (limited to 'alias') diff --git a/alias/branches.bat b/alias/branches.bat new file mode 100644 index 0000000..24e26d5 --- /dev/null +++ b/alias/branches.bat @@ -0,0 +1,3 @@ +:: Alias for listing all available local git branches +@echo off +git branch \ No newline at end of file diff --git a/alias/branchs.bat b/alias/branchs.bat new file mode 100644 index 0000000..422f669 --- /dev/null +++ b/alias/branchs.bat @@ -0,0 +1,3 @@ +:: Alias to list current branch +@echo off +git rev-parse --abbrev-ref HEAD \ No newline at end of file diff --git a/alias/g-push.bat b/alias/g-push.bat new file mode 100644 index 0000000..97b8ef1 --- /dev/null +++ b/alias/g-push.bat @@ -0,0 +1,4 @@ +:: Alias for git status +@echo off +echo Pushing branch  %1  +git push -u origin %1 \ No newline at end of file diff --git a/alias/gg.bat b/alias/gg.bat new file mode 100644 index 0000000..514677b --- /dev/null +++ b/alias/gg.bat @@ -0,0 +1,3 @@ +:: Alias to open git gui +@echo off +git gui \ No newline at end of file diff --git a/alias/gsts.bat b/alias/gsts.bat new file mode 100644 index 0000000..fc34f62 --- /dev/null +++ b/alias/gsts.bat @@ -0,0 +1,3 @@ +:: Alias for git status +@echo off +git diff --stat \ No newline at end of file diff --git a/alias/s.ps1 b/alias/s.ps1 new file mode 100644 index 0000000..f2de4e3 --- /dev/null +++ b/alias/s.ps1 @@ -0,0 +1,3 @@ +$P = git rev-parse --abbrev-ref HEAD + +Write-Host $P -ForegroundColor yellow -BackgroundColor red \ No newline at end of file -- cgit v1.2.3