---
title: "Discussion on \"Git Commands\" | Hashnode"
description: "Discussion on \"Git Commands\". 1. Add\nNew Changes\ngit add <file.ext> # To add a specific file\n\ngit add . # To add all the files in the current directory\n\nNew Branch\ngit branch <new name> # and remain in the current branch \n\ngit checkout -b <new name> # and switch to the new branch..."
url: "https://hashnode.com/posts/git-commands/6489ead1bf3952483a012c2d"
---

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

Discussion

# [Git Commands](https://parashar.hashnode.dev/git-commands?utm_source=hashnode&utm_medium=feed)

1\. Add New Changes git add <file.ext> # To add a specific file git add . # To add all the files in the current directory New Branch git branch <new name> # and remain in the current branch git checkout -b <new name> # and switch to the new branch...

Jun 14, 2023 · 4 min read · parashar.hashnode.dev  
Read the article

-   [#devops](https://hashnode.com/tag/devops)
-   [#git](https://hashnode.com/tag/git)
-   [#github](https://hashnode.com/tag/github)
-   [#gitcommands](https://hashnode.com/tag/gitcommands)
-   [#basics](https://hashnode.com/tag/basics)

## Written by

[Anurag Sharma](https://hashnode.com/@ParasharI)

@ParasharI

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

TechLover

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
