1

After running the interactive staging git command $ git add -i and choosing one of the options for example "update", then I don't know how to get back to the root level to choose another option.

Is there any keyboard shortcuts or alternative methods rather that just using "ctrl + c" and then running the code $ git add -i, again?

muel
  • 43
  • 1
  • 13

1 Answers1

1

If you press ? while interactive adding you can see that help:

Prompt help:
1          - select a single item
3-5        - select a range of items
2-3,6-9    - select multiple ranges
foo        - select item based on unique prefix
-...       - unselect specified items
*          - choose all items
           - (empty) finish selecting

So basically just press enter, it should return to main selection

kosciej16
  • 6,294
  • 1
  • 18
  • 29