---
title: "Discussion on \"Partial file staging with git\" | Hashnode"
description: "Discussion on \"Partial file staging with git\". After typing git status you can see files in three states:\n\nadded to the index\nnot added to the index\nnot tracked at all  \n\nIt's likely to have the same file added and not added to the index.\nHow is that possible?\nLet me introduce partial file stagin..."
url: "https://hashnode.com/posts/partial-file-staging-with-git/5ffd8fd648ff837fd1863c6a"
---

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

Discussion

# [Partial file staging with git](https://blog.ciechowski.net/partial-file-staging-with-git?utm_source=hashnode&utm_medium=feed)

After typing git status you can see files in three states: added to the index not added to the index not tracked at all It's likely to have the same file added and not added to the index. How is that possible? Let me introduce partial file stagin...

Jan 12, 2021 · 3 min read · blog.ciechowski.net  
Read the article

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

## Written by

[Kuba Ciechowski](https://hashnode.com/@kciechowski)

@kciechowski · Gdańsk, Poland

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

soft skilled developer

## Responses 1

Markdown supported · ⌘↵ to post

[Marek Całus](https://hashnode.com/@mcalus)

[Jan 13, 2021](https://hashnode.com/posts/partial-file-staging-with-git/5ffd8fd648ff837fd1863c6a/comment/5ffec9a8b00f7510ee9591e3)

I also use Partial file staging, but only in the VSCode git gui :P I right-click on the code hunk and press "stage/unstage selected ranges"

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1610533276676/-Yw0ssurG.png)

[Kuba Ciechowski](https://hashnode.com/@kciechowski)

[Jan 13, 2021](https://hashnode.com/posts/partial-file-staging-with-git/5ffd8fd648ff837fd1863c6a/comment/5ffec9a8b00f7510ee9591e3#reply-5ffecdcbb00f7510ee95923a)

Can you edit hunk manually from a GUI? It would save me a lot of frustration :D

[Marek Całus](https://hashnode.com/@mcalus)

[Jan 14, 2021](https://hashnode.com/posts/partial-file-staging-with-git/5ffd8fd648ff837fd1863c6a/comment/5ffec9a8b00f7510ee9591e3#reply-60003b52b00f7510ee95a48c)

[Kuba Ciechowski](https://hashnode.com/@kciechowski) Sure I can: [loom.com/share/61d58a44670b42f5a2f25f98fd7d6bfd](https://www.loom.com/share/61d58a44670b42f5a2f25f98fd7d6bfd)

In the terms of using CLI vs GUI - I believe that everyone should know the basics of git CLI to be able to comfortably use it anywhere (for example your buddy's computer) and know basic concepts and language. After that, gui plugins like the one in the vs code just makes my job faster. I like to select files to commit and write a message in the gui, but push, list branches and checkout from the CLI - that's the fastest way for me. I also feel more comfortable with advanced things like interactive rebase and reflog in the CLI because i don't have to be afraid that the GUI will screw up something behind my back.

[Kuba Ciechowski](https://hashnode.com/@kciechowski)

[Jan 14, 2021](https://hashnode.com/posts/partial-file-staging-with-git/5ffd8fd648ff837fd1863c6a/comment/5ffec9a8b00f7510ee9591e3#reply-60004304b00f7510ee95a4d6)

[Marek Całus](https://hashnode.com/@mcalus) This looks nice! I am not able to do that in Rider. Have to dig deeper into GUI
