Become a Git Terminal Pro

Christian Walter
ITNEXT
Published in
5 min readJan 8, 2020

--

Git Log in the Shell

Every coder knows it and has to, or loves to work with it — Git. Git changes the way I worked — and who does not remember the endless Ctrl-Z presses to get back to the working state before you rewrote the whole code base.

Git is a version-control system which lets you track your changes in the code while developing software. It is useful when you work in teams, but also when you are working alone — git is a must IMHO.

When I started my new job a couple of months ago, I thought I already know my way around git. I always tend to use a graphical user interface like Sourcetree for Git, but for various reasons I switched from MacOS to Linux and unfortunately I had to switch to the terminal to work with Git. Looking back, this was one of the best decisions I was forced to make ever. My new Co-workers showed me some minor tricks and improvements so that I work faster and more secure in combination with Git and the terminal which I like to share.

But first — lets recap the basics again. I assume that everyone is familiar with the principle of git. If not — there are tons of introduction into git around here on medium.

git clone

git clone is the most used command in git. Every time when we want to download a repository from github or gitlab, we have to clone into a local folder.

--

--

Writer for

Firmware Developer, Tech Enthusiasts. If you have questions about firmware — write me to christian.walter@9elements.com