Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 741 Bytes

README.md

File metadata and controls

23 lines (21 loc) · 741 Bytes

Few Setup I used in my bash profile

GitHub Workflow Status GitHub repo size

Finding git branch during runtime

git_branch() 
{ 
   git branch 2>/dev/null | grep '^*' | colrm 1 2 
} 

Updating PS1

export PS1="[\d \t\[\033[36m\] \u@\h:\[\033[32m\]\w\[\033[33m\] \$(git_branch)\[\033[00m\]]$ "

For nice view of git log

alias graph="git log --all --decorate --oneline --graph"

GIT_SSH_COMMAND usage

GIT_SSH_COMMAND="ssh -i ~/.ssh/personal-learning-id-rsa" git push origin main