Friday, 4 March 2022

Git shortcuts

Git

Added to C:\Program Files\Git\usr\bin

With the folder added to the path environment variable

ga.bat

@git add %1

gd.bat

@git difftool %1

gs.bat

@git status %1

Set default branch

git config --global init.defaultBranch main

Git - on Linux

alias gs='git status'
alias gd='git difftool'
alias ga='git add'

Terraform

C:\Program Files (x86)\terraform\tf.bat

@terraform %1 %2 %3 %4 %5






No comments:

Post a Comment