---
title: "Discussion on \"Get Good At Git 💎\" | Hashnode"
description: "Discussion on \"Get Good At Git 💎\". 15 Advanced Git Techniques and Shortcuts"
url: "https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Get Good At Git 💎](https://kubesimplify.hashnode.dev/get-good-at-git?utm_source=hashnode&utm_medium=feed)

15 Advanced Git Techniques and Shortcuts

May 4, 2022 · 9 min read · kubesimplify.hashnode.dev  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)
-   [#technical-writing-1](https://hashnode.com/tag/technical-writing-1)
-   [#advanced](https://hashnode.com/tag/advanced)
-   [#devops](https://hashnode.com/tag/devops)

## Written by

[Bushra Nazish](https://hashnode.com/@Bushra)

@Bushra · Bengaluru, India

  
[View profile](https://hashnode.com/@Bushra)

AI Backend Engineer | Ex-Google

Building autonomous LLM agents, RAG pipelines and API-first services in Python

## Responses 16

Markdown supported · ⌘↵ to post

[Abdul Rauf Mustakim](https://hashnode.com/@raufhm)

[Jun 3, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/629a155da7681524f75bda90)

```
git commit -am "An easy way!"
```

not working with me. is anything need to setup ? pls advice

[Manish Kumar Gupta](https://hashnode.com/@Heismanish)

[May 10, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/6279c301076291997b76604c)

That's a really amazing article there, just the way it was written and how things were explained.

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 10, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/6279c301076291997b76604c#reply-627a009eeaefa89febd4de9f)

I'm glad you liked it 🙏 Grateful for your kind words 🙌😄

[Naman Tiwari](https://hashnode.com/@namantiwari)

[May 6, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62757971dc122f5a4f21cab6)

Just wow!

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 7, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62757971dc122f5a4f21cab6#reply-6276040cdc122f5a4f21d271)

Thanks Naman 🌸

[Kallol Das](https://hashnode.com/@wittym0nk)

[May 6, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627526d2317fc95a74ca5e84)

I would like to add few Git alias hecks from my day to day productivity boosting tricks playbook: (on Mac)

# vi ~/.gitconfig

```
[alias]
        s = status
        del = branch -D
        co = checkout
        cob = checkout -b
        st = stash list
        stp = stash pop
        se = !git rev-list --all | xargs git grep -F
        br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
        lg = !git log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30
```

Also, if you are frequently switching personal and work projects. You may have to maintain multiple git configs Here is the git config heck assuming all your work related projects are saved in /Documents/work/ folder and personal fun projects saved under /Documents/personal/ folder:

```
[includeIf "gitdir:~/Documents/work/"]
  path = ~/.gitconfig-work
[includeIf "gitdir:~/Documents/personal/"]
  path = ~/.gitconfig-personal
```

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 6, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627526d2317fc95a74ca5e84#reply-62753ba2317fc95a74ca611b)

Thanks a lot for adding Kallol🙌🤩

[Jitendra Singh](https://hashnode.com/@jsroyal)

[May 6, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/6274a01fec989f4842a27b9b)

Great work, putting it all together. What is the difference between git fetch and git pull?

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 6, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/6274a01fec989f4842a27b9b#reply-62753ac0dc122f5a4f21c44f)

Thanks Jitendra :)

A great question. Well! As far as I know,

-   Git Pull downloads the content from the remote repository and also merges the new commits into our working branch
-   Whereas, Git Fetch just copies content from the remote into the local repository.

So, Git Fetch can be considered as a harmless option as our working branch is not altered and our uncommitted work is secure.

Here's a helpful blog on it: [freecodecamp.org/news/git-fetch-vs-pull](https://www.freecodecamp.org/news/git-fetch-vs-pull/)

[Victor Eke](https://hashnode.com/@Eke)

[May 5, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62744ae88af49c436c440065)

Great content [BUSHRA NAZISH](https://hashnode.com/@Bushra). I can't count how many Grandma's house scenarios I've had and felt useless without my PC. 😂 Wish I knew about this shortcut earlier.

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 6, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62744ae88af49c436c440065#reply-62747d240d853a4264053bd5)

Thank you so much Victor👍 I'm glad you found it useful 🙌 😅

[Hyerim Y](https://hashnode.com/@hammieyummie)

[May 5, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/6273a61777679f3cf14d7248)

❤️ Thanks for the tips :) Nice ! 👍

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 5, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/6273a61777679f3cf14d7248#reply-6273d9c41c671640b8a7d928)

Glad it helped Hyerim😇🙌

[Pradumna Saraf](https://hashnode.com/@Pradumnasaraf)

[May 5, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62738b6474dff339292d0e2b)

Great Blog, Bushra. You put awesome effort into it 👏👏.

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 5, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62738b6474dff339292d0e2b#reply-6273962059eb183aff921f4d)

Thank you so much Pradumna for your valuable feedback 😍🙏 It means a lot 🙌

[Lavakush Biyani](https://hashnode.com/@Lavakush07)

[May 5, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62735e6719a4772a6c29b8ed)

Well written👌 and learnt a quite new things ✅🙌

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 5, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62735e6719a4772a6c29b8ed#reply-6273782119a4772a6c29bc2e)

Thanks Lavakush 🙌🤩 Glad it helped ✨

[Vaidansh Bhardwaj](https://hashnode.com/@Vaidansh)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62728c0d19a4772a6c29a651)

Greatly written blog 🙌

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62728c0d19a4772a6c29a651#reply-6272beb719a4772a6c29ad8d)

Thanks a ton Vaidansh 🙌😄

[Anurag Kumar](https://hashnode.com/@kranurag7)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627285ad272fe72a917cce3f)

Nicely Explained

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627285ad272fe72a917cce3f#reply-6272be94272fe72a917cd546)

Thank you so much Anurag 🙌🤩

[Barkatul Mujauddin](https://hashnode.com/@barkatul)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62727f73272fe72a917ccdb1)

Awesome blog!

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62727f73272fe72a917ccdb1#reply-6272be7b272fe72a917cd53d)

Thanks Barkatul ✌️😄

[Srinivas Karnati](https://hashnode.com/@srinivaskarnati)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62727b33272fe72a917ccd21)

That's the best blog I've read on git.

So much info presented in a much interesting way.

Amazing one Bushra

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62727b33272fe72a917ccd21#reply-6272be6019a4772a6c29ad75)

Thanks for the appreciation Srinivas 🙌😄

[Aditya Tripathi](https://hashnode.com/@tripathiaditya)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62727a45272fe72a917cccf3)

Insightful blog Bushra, get to know lots of tricks & tips✌️.

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/62727a45272fe72a917cccf3#reply-6272be4619a4772a6c29ad69)

Glad it helped Aditya 👋😄

[Bhavya Sachdeva](https://hashnode.com/@bhavyastar)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627278ee19a4772a6c29a415)

Amazing blog Bushra! 😃👏

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627278ee19a4772a6c29a415#reply-6272be25272fe72a917cd535)

Thanks a lot Bhavya 🤩🙌

[Pavan Gudiwada](https://hashnode.com/@pavangudiwada)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627271bd272fe72a917ccc2c)

A well written blog, Bushra!👏

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 4, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627271bd272fe72a917ccc2c#reply-6272bdf6272fe72a917cd51d)

Thanks Pavan 🙌😄
