<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/10-things-i-always-setup-in-git-when-i-prepare-a-new-environment-w27erwhvl" -->

---
title: 10+ things I always setup in git when I prepare a new...
description: Fast-forward merging makes it difficult to follow the history of work on a branch. Use nvim as the editor to be used when committing git config --global...
canonical: https://daily.dev/posts/10-things-i-always-setup-in-git-when-i-prepare-a-new-environment-w27erwhvl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 10+ things I always setup in git when I prepare a new environment | daily.dev
og:description: Fast-forward merging makes it difficult to follow the history of work on a branch. Use nvim as the editor to be used when committing git config --global...
og:url: https://daily.dev/posts/10-things-i-always-setup-in-git-when-i-prepare-a-new-environment-w27erwhvl
og:image: https://api.daily.dev/og/posts/w27ErWHvL.png
og:image:alt: 10+ things I always setup in git when I prepare a new environment
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.

# 10+ things I always setup in git when I prepare a new environment

**[DEV](https://daily.dev/sources/devto)** · 8 min read · 137 upvotes · 3 comments

## Summary

Fast-forward merging makes it difficult to follow the history of work on a branch. Use nvim as the editor to be used when committing git config --global core.pager 'less -x4' Enter fullscreen mode Exit fullscreen Mode. Use thegitignore settings for each project, which will be applied to all git operations. Do you always use cli commands or do you sometimes commit/push/pull/delete branches from your IDE?

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/snaka/10-things-i-always-setup-in-git-when-i-prepare-a-new-environment-d99>

## Community discussion

Top comments from developers on daily.dev.

**@imadbg01** · 1 upvotes

> Thanks for the tips, you remind me to update my dotfiles .

**@raodotsh** · 0 upvotes

> Thanks!

**@sockworkorange** · 0 upvotes

> very useful - thanks:)

---

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

[View this post on daily.dev](https://daily.dev/posts/10-things-i-always-setup-in-git-when-i-prepare-a-new-environment-w27erwhvl)

```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":"10+ things I always setup in git when I prepare a new environment","url":"https://daily.dev/posts/10-things-i-always-setup-in-git-when-i-prepare-a-new-environment-w27erwhvl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/10-things-i-always-setup-in-git-when-i-prepare-a-new-environment-w27erwhvl"},"datePublished":"2022-07-29T21:05:43.600Z","dateModified":"2022-07-29T21:05:43.526Z","description":"Fast-forward merging makes it difficult to follow the history of work on a branch. Use nvim as the editor to be used when committing git config --global...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ebb3a91e80709b43f305d36837a21402","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ebb3a91e80709b43f305d36837a21402","isAccessibleForFree":true,"articleSection":"DEV","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":"DEV","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto","url":"https://daily.dev/sources/devto"},"commentCount":3,"discussionUrl":"https://daily.dev/posts/10-things-i-always-setup-in-git-when-i-prepare-a-new-environment-w27erwhvl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":137},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":3}],"keywords":"git","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DEV","item":"https://daily.dev/sources/devto"},{"@type":"ListItem","position":3,"name":"10+ things I always setup in git when I prepare a new environment"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/10-things-i-always-setup-in-git-when-i-prepare-a-new-environment-w27erwhvl","comment":[{"@type":"Comment","text":"Thanks for the tips, you remind me to update my dotfiles .","datePublished":"2022-07-30T01:50:55.840Z","url":"https://daily.dev/posts/w27ErWHvL#c-ZhFGnr0pN","author":{"@type":"Person","name":"imad","url":"https://daily.dev/imadbg01","image":"https://avatars.githubusercontent.com/u/88989473?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Thanks!","datePublished":"2022-07-30T04:02:19.822Z","url":"https://daily.dev/posts/w27ErWHvL#c-UzX2S7hxY","author":{"@type":"Person","name":"RAO.sh","url":"https://daily.dev/raodotsh","image":"https://avatars.githubusercontent.com/u/84059138?v=4"}},{"@type":"Comment","text":"very useful - thanks:)","datePublished":"2022-08-01T11:41:00.096Z","url":"https://daily.dev/posts/w27ErWHvL#c-e0WTqvvoD","author":{"@type":"Person","name":"Ilan Uzan","url":"https://daily.dev/sockworkorange","image":"https://avatars.githubusercontent.com/u/26390445?v=4"}}]}
```

