Skip to main content

Learning Git Shortcuts By Examples

Together we can change the world, just one random act of kindness at a time.
— Ron Hall.

I’ve been wondering before on how to create aliases in git but after reading and delving more into some documents. I found out that its possible.

git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status

The commands above will emulate an svn (subversion) like keywords. Additionally, here are some useful aliases that I’ve found while exploring the internet.

git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global alias.type 'cat-file -t'
git config --global alias.dump 'cat-file -p'

That’s it. Hope you enjoyed this article!

Popular posts from this blog

Disable mDNS and SSDP Discovery in Google Chrome

We're born alone, we live alone, we die alone. Only through our love and friendship can we create the illusion for the moment that we're not alone. — Orson Welles.

Flutter Series: Custom Icons

Everyone thinks of changing the world, but no one thinks of changing himself. — Leo Tolstoy. Custom Free Icons For Everyone! As I began learning Flutter, to develop new apps. I began to wonder, how can I beautify it to almost match the wireframe I’m copying. There are several things to consider, getting exact dimensions and well crafted image and icons. For today’s how-to article, we will get deeper on how to add custom icons to flutter development environment as well use it in app.

Editor Series: Configuring Emacs To Fit The Needs Part 2

The world as we have created it is a process of our thinking. It cannot be changed without changing our thinking. — Albert Einstein. As the title says, to fit the needs. Currently, I’m looking into handling multiple projects but vast differ in programming paradigm ang language. Some of the language that I’ll probably tackling are Go, Rust, Ruby, Perl, C++, Javascript, Typescript, and etc.

Let's Explore!

Let’s find some beautiful place and get lost. — Self Thoughts.