Is there a command in GIT that has the options "git add -p" and "git checkout -p" COMBINED?

I would like to issue one command that allows me to interactively either add a piece, or DISABLE a piece, or leave an unconnected hunk ...

In fact, as I know, there is only:

git add -p : ADDs interactively (or leave uninstalled)
git checkout -p : DISCARDS interactively (or leave uninstalled)

Is there a command in GIT that has the options "git add -p" and "git checkout -p" COMBINED?

The answer to this question provided here is not satisfactory :(

+4
source share
1 answer

There is no built-in git command that can execute both. Although I believe that the best command line manager on the command line will be very useful in the git community. You should include git reset -p in your question, but this is very convenient.

+1
source

All Articles