Oh My Zsh Git Plugin

Photo by jordan duca on Unsplash

Introducing Git Plugin in Oh My Zsh

1. Make sure that you already have zsh installed and your default shell is zsh.

echo $SHELL // /bin/zsh
chsh -s /bin/zsh

2. Check the version of your zsh

zsh --version 
echo $ZSH_VERSION

3. Install Oh My Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

4. Add a git plugin 🔨

vi ~/.zshrc
plugins=(rails git ruby docker yarn)

5. Time to see the magic 🎉

gb -> git branch
gcm -> git checkout master
gst -> git status
ga . -> git add .
gcmsg -> git commit -m
ggf -> git push -f
gl -> git pull
gco [branch name] -> git checkout [branch name]
glo -> git log --oneline --decorate

--

--

--

Japan based Web Developer 🗼

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Parsing with Moshi in Android

BDP Community Commentaries 5/9/21

Showing Media Player System Controls on Notification Screen in iOS (Swift)

Seccond weeks my journey in #GenerasiGIGIH

Finding Duplicate E-Mail Id using Snowflake and py-spark : Leet Code Problem : Category : Easy …

How to start contributing to Open Source?

Introducing HPC Affinities to the Enterprise: A New Open Source Project Integrates Singularity and…

Testing in Spring Boot

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ryuki Kuga

Ryuki Kuga

Japan based Web Developer 🗼

More from Medium

10 Reasons Why You Should use Docker

How to decorate an existing Sylius repository for plug-in purposes — BitBag

Infrastructure, Platform, and Software as a Service — What’s the difference?

What is Version Control Software (VCS)…?