---
title: "Discussion on \"Git | Part-2: Adding, commiting and logging\" | Hashnode"
description: "Discussion on \"Git | Part-2: Adding, commiting and logging\". TL;DR:\nCommands usage for git commit and git log\ngit add\nAdd the files to the staging area\nUsage\ngit add <file1>…<filen>: to add the files\ngit commit\nAdd the files to the local repository(commiting).\nNote: requires commit message\nUsage\ngit commit -m:..."
url: "https://hashnode.com/posts/git-part-2-adding-commiting-and-logging/67998aa785b82e00b444f587"
---

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

Discussion

# [Git | Part-2: Adding, commiting and logging](https://d4rkr0n1n.hashnode.dev/git-part-2-adding-commiting-and-logging?utm_source=hashnode&utm_medium=feed)

TL;DR: Commands usage for git commit and git log git add Add the files to the staging area Usage git add <file1>…<filen>: to add the files git commit Add the files to the local repository(commiting). Note: requires commit message Usage git commit -m:...

Jan 29, 2025 · 1 min read · d4rkr0n1n.hashnode.dev  
Updated Feb 1, 2025  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#git-add](https://hashnode.com/tag/git-add)
-   [#git-log](https://hashnode.com/tag/git-log)
-   [#git-commit](https://hashnode.com/tag/git-commit)

## Written by

[Mridul Roy](https://hashnode.com/@d4rkr0n1n)

@d4rkr0n1n

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
