I often only want a commit to be in reference to a specific file I've updated. I find myself grabbing the file path and running git add {filepath} a lot. Is there a VS code shortcut or some sort of zsh script I can use to get the current file path from the command line?
you can use the '.' like git add .
it will add the file/files that have changes at that point of time, then you can just git commit
it. Thus not needing the full path.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.