---
title: "Comment by Niranjan Borawake on \"How NOT to use Git in Practice. Ten Git usages, you should know to avoid.\" | Hashnode"
description: "Great list, Tapas Adhikary . Thanks. Would like to add a couple - Always squash your commits w.r.t. Don&#39;t make it bulky section. Do git pull --rebase when a"
url: "https://hashnode.com/posts/how-not-to-use-git-in-practice-ten-git-usages-you-should-know-to-avoid/60ebb92bc551f16b0f850097/comment/60ec4401fc37a15ec1560a88"
---

[Discussion](https://hashnode.com/posts/how-not-to-use-git-in-practice-ten-git-usages-you-should-know-to-avoid/60ebb92bc551f16b0f850097)

Comment [How NOT to use Git in Practice. Ten Git usages, you should know to avoid.](https://hashnode.com/posts/how-not-to-use-git-in-practice-ten-git-usages-you-should-know-to-avoid/60ebb92bc551f16b0f850097)

[Jul 12, 2021](https://hashnode.com/posts/how-not-to-use-git-in-practice-ten-git-usages-you-should-know-to-avoid/60ebb92bc551f16b0f850097/comment/60ec4401fc37a15ec1560a88)

Great list, [Tapas Adhikary](https://hashnode.com/@atapas). Thanks.

Would like to add a couple -

1.  Always squash your commits w.r.t. _Don't make it bulky_ section.
2.  Do `git pull --rebase` when appropriate.

[Tapas Adhikary](https://hashnode.com/@atapas)

[Jul 12, 2021](https://hashnode.com/posts/how-not-to-use-git-in-practice-ten-git-usages-you-should-know-to-avoid/60ebb92bc551f16b0f850097/comment/60ec4401fc37a15ec1560a88#reply-60ec4672fc37a15ec1560bfc)

Thank you, Niranjan.

These two additions sound great. Thanks a lot for sharing 👏.

[PFRouleau](https://hashnode.com/@PFRouleau)

[Jul 13, 2021](https://hashnode.com/posts/how-not-to-use-git-in-practice-ten-git-usages-you-should-know-to-avoid/60ebb92bc551f16b0f850097/comment/60ec4401fc37a15ec1560a88#reply-60ed99e0fc37a15ec1568267)

I tell to my teammate to always use "git pull --rebase" and to define a "pr" alias to make it short.

It should not be required if they follow the rule to never commit directly to a main branch, but there is always someone that does it by mistake and this prevents the creation of an unwanted merge.
