I know I can add chunks using any of the following commands
git add -i git add --patch git add --edit But I can get all chunks for a file
git --no-pager diff file1 > /tmp/stageme I can see three chunks I want only the first and last chunks, so I remove the second chunk the file /tmp/stageme
How I can stage those chunks in a command? I mean, how can I stage the info from /tmp/stageme?
git add -e, which has been in git since 1.6.4 so is probably in your version.