dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit 21a3dce34bbe8277a71ad961128fb22e3e41695b
parent f3985e718b83002b5923b37319fe0e9a30921f30
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Tue,  7 May 2024 15:25:58 -0500

bash: Added git function

Diffstat:
M.bashrc | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -46,6 +46,20 @@ man() { fi } +git() { + if [ $1 = "checkout" ]; then + echo "Use" + echo " - git checkout-index -fu" + echo " - git read-tree --cached -u" + elif [ $1 = "reset" ]; then + echo "Use" + echo " - git read-tree -mu" + echo " - git read-tree -m" + echo " - git update-index --add --remove --cacheinfo 100644 sha1 filename" + else + command git $@ + fi +} [ -f /usr/share/bash-completion/completions/git ] && source /usr/share/bash-completion/completions/git [ -f /data/data/com.termux/files/usr/share/bash-completion/completions/git ] && source /dataa/data/com.termux/files/usr/share/bash-completion/completions/git