Manel
Manel

Reputation: 1654

Git-add : Marking files to add without entering full path

Does anyone knows a cli utility or command that allow to quickly mark files to add to the next commit or rebase ?

For now i have to do :

git add $fullPath0 $fullPath1 $fullPath2...

I heard that "tig" can open a window where you can add files with spacebar key but i can't find anything about this command.

Upvotes: 1

Views: 407

Answers (2)

Manel
Manel

Reputation: 1654

I found something with the "tig" utility :

execute this in terminal :

tig status

Navigate up or down with arrow keys then press "u" to stage (add) the files.

You can press "u" again to unstage the files.

Upvotes: 0

Ryan Kohn
Ryan Kohn

Reputation: 13509

If you want to add all the files in a particular folder, you can use a wildcard:

git add path/to/folder/*

Upvotes: 2

Related Questions