An open API service indexing awesome lists of open source software.

https://github.com/tomaszprasolek/git-filestage

Simple tool to stage and unstage whole files.
https://github.com/tomaszprasolek/git-filestage

git version-control

Last synced: 5 months ago
JSON representation

Simple tool to stage and unstage whole files.

Awesome Lists containing this project

README

          

# git-filestage

Simple tool to stage and unstage whole files.

[![Build status](https://prasol.visualstudio.com/git-filestage/_apis/build/status/git-filestage-CI)](https://prasol.visualstudio.com/git-filestage/_build/latest?definitionId=1)
[![](https://img.shields.io/nuget/v/git-filestage.svg)](https://www.nuget.org/packages/git-filestage/)

![](docs/git-filestage.gif)

## Why I wrote this piece of software?

I want to have my commits clean.
They should contains only the code that fix the problem which is written in commite message.
Sometimes I make more changes, so I have to split my work to 2 or more commits.
Mostly I have to type long paths to files like: `src\projectName\moduleName\someFolder\anotherFolderName\File.cs`

I just want to quick select files and add them to staging area.
I also don't want switch from console to some GUI app.

## Installation

dotnet tool install -g git-filestage

## Features
- Add whole selected file to staging area.
- Unstage the selected file.
- Checkout selected file to discard made changes.

## Keyboard shortcuts

| Shortcut | Description |
|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| | Select the previous file. |
| | Select the next file. |
| ENTER | - When file is in working directory, will be added to staging area.
- When file is in staging area, will be unstaged.
- When file is untracked, start tracked file and added to staging area. |
| R | Checkout selected file to discard made changes. |
| ESCAPE | Close application, return to command line. |
| Q | Close application, return to command line. |