<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/nI9IKxl5e" -->

---
title: 7 Git tricks that changed my life | daily.dev
description: Git is one of the most common version control systems available, and it's used on private systems and publicly hosted websites for all kinds of development...
canonical: https://daily.dev/posts/7-git-tricks-that-changed-my-life-ni9ikxl5e
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 7 Git tricks that changed my life | daily.dev
og:description: Git is one of the most common version control systems available, and it's used on private systems and publicly hosted websites for all kinds of development...
og:url: https://daily.dev/posts/7-git-tricks-that-changed-my-life-ni9ikxl5e
og:image: https://api.daily.dev/og/posts/nI9IKxl5e.png
og:image:alt: 7 Git tricks that changed my life
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 7 Git tricks that changed my life

**[Open Source Way](https://daily.dev/sources/oss)** · 68 upvotes · 9 comments

## Summary

Git is one of the most common version control systems available, and it's used on private systems and publicly hosted websites for all kinds of development work. Here are seven tricks that have changed the way I work with Git. Know your .git folder. Count your commits. Take a backup of untracked files.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://opensource.com/article/20/10/advanced-git-tips>

## Community discussion

Top comments from developers on daily.dev.

**@garvnanwani** · 3 upvotes

> Thanks for these tricks 🤍

**@arklev** · 2 upvotes

> Good tips!

**@emmorais** · 2 upvotes

> Definitely, the best tricks 🤩 Just to increase, if you wanna see more of these commands, see this repository on GitHub:
> https://git.io/git-tips

**@kmhmubin** · 1 upvotes

> Great tips, Thanks for sharing.

**@atapas** · 1 upvotes

> Great Tips! Thanks for sharing.

---

Tags: [#git](https://daily.dev/tags/git)

[View this post on daily.dev](https://daily.dev/posts/7-git-tricks-that-changed-my-life-ni9ikxl5e)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"7 Git tricks that changed my life","url":"https://daily.dev/posts/7-git-tricks-that-changed-my-life-ni9ikxl5e","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/7-git-tricks-that-changed-my-life-ni9ikxl5e"},"datePublished":"2020-10-26T07:13:21.717Z","dateModified":"2021-10-07T14:17:10.317Z","description":"Git is one of the most common version control systems available, and it's used on private systems and publicly hosted websites for all kinds of development...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4d70cfad47a6d1c553ce56feddc4d796","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4d70cfad47a6d1c553ce56feddc4d796","isAccessibleForFree":true,"articleSection":"Open Source Way","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Open Source Way","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5b0ebeb91c344b78a2a92b8bc5956b97","url":"https://daily.dev/sources/oss"},"commentCount":9,"discussionUrl":"https://daily.dev/posts/7-git-tricks-that-changed-my-life-ni9ikxl5e","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":68},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":9}],"keywords":"git"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Open Source Way","item":"https://daily.dev/sources/oss"},{"@type":"ListItem","position":3,"name":"7 Git tricks that changed my life"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/7-git-tricks-that-changed-my-life-ni9ikxl5e","comment":[{"@type":"Comment","text":"Thanks for these tricks 🤍","datePublished":"2020-10-26T08:45:25.837Z","url":"https://daily.dev/posts/nI9IKxl5e#c-fnQegPW3M","author":{"@type":"Person","name":"Garv nanwani","url":"https://daily.dev/garvnanwani","image":"https://avatars3.githubusercontent.com/u/36405030?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"Good tips!","datePublished":"2020-10-26T17:17:30.934Z","url":"https://daily.dev/posts/nI9IKxl5e#c-6TsfolStK","author":{"@type":"Person","name":"Arkady Levin","url":"https://daily.dev/arklev","image":"https://avatars0.githubusercontent.com/u/12517285?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Definitely, the best tricks 🤩 Just to increase, if you wanna see more of these commands, see this repository on GitHub:\nhttps://git.io/git-tips","datePublished":"2020-10-26T11:31:49.802Z","url":"https://daily.dev/posts/nI9IKxl5e#c-Q7_SHGZ49","author":{"@type":"Person","name":"Esaú Morais","url":"https://daily.dev/emmorais","image":"https://media.daily.dev/image/upload/v1670685286/avatars/avatar_l1ZLq0tez.jpg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Great tips, Thanks for sharing.","datePublished":"2020-10-26T09:17:51.801Z","url":"https://daily.dev/posts/nI9IKxl5e#c-R6_cXvAeL","author":{"@type":"Person","name":"K M H Mubin","url":"https://daily.dev/kmhmubin","image":"https://media.daily.dev/image/upload/f_auto/v1603259645/avatars/TcxjjxGKV"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Great Tips! Thanks for sharing.","datePublished":"2020-10-26T14:43:08.271Z","url":"https://daily.dev/posts/nI9IKxl5e#c-GhOn3G8m3","author":{"@type":"Person","name":"Tapas Adhikary","url":"https://daily.dev/atapas","image":"https://lh3.googleusercontent.com/a-/AOh14GhN71PeWrtSoinbdnOhZS9usr2nbP111YlpswhWaBg=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

