Push your code on Github like Pro

ritik_20

ritik

Posted on July 22, 2022

Push your code on Github like Pro

I never liked to typing 4 commands each time for pushing your code to github.

So i have created a alias for that and with also random commits name.

paste the below code to your default shellrc file.

#Get random gibbrish word

get_random(){
    random_commit=`shuf /usr/share/dict/cracklib-small | awk 'FNR == 1 { print $1 }'`
}
alias gpm='get_random; git add .; git commit -m ${random_commit}; git push origin main'

Enter fullscreen mode Exit fullscreen mode

make sure you have file located at /usr/share/dict/cracklib-small. For my system Manjaro cracklib-small file consists of lots of english dictionary words.
For you system it maybe different.

πŸ’– πŸ’ͺ πŸ™… 🚩
ritik_20
ritik

Posted on July 22, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related