---
title: "Discussion on \"Git Commands: 101\" | Hashnode"
description: "Discussion on \"Git Commands: 101\". git config\nSetup author name and mail to be used for all commits in current repository, Devs commonly use --global flag to set config options for current user.\ngit config --global user.name \"username\"\ngit config --global user.email \"usermail@example...."
url: "https://hashnode.com/posts/git-commands-101/6315ccbf3abbb7f88d49c8c6"
---

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

Discussion

# [Git Commands: 101](https://blog.grejo.in/git-commands-101?utm_source=hashnode&utm_medium=feed)

git config Setup author name and mail to be used for all commits in current repository, Devs commonly use --global flag to set config options for current user. git config --global user.name "username" git config --global user.email "usermail@example....

Sep 5, 2022 · 7 min read · blog.grejo.in  
Updated Sep 6, 2022  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#github](https://hashnode.com/tag/github)
-   [#gitlab](https://hashnode.com/tag/gitlab)

## Written by

[Grejo Joby](https://hashnode.com/@grejojoby)

@grejojoby

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
