configuration - Git: Creating alias for "add --update TOPLEVEL_DIR"? -
I'm often typing myself
git add -u that has been modified, but for the purpose of joining the entire repository However, when I live in the subdirectory, it becomes tense and tedious, for example, if all of my revisions are in src / but I am currently in the test / access directory I need to type in Git add -u ../ .. The error is prone and slow (because in my code need to calculate the number of ../ ). I would like to create a git alias au , as it automatically detects the upper part (usually, the first ancestor directory in the path in which .git < / Code> directory). This is not very portable, because I use git for bash Any ideas?
No top-level detection is required.
You can type in any subfolder:
git add -u: / This is less for:
git add -u: (above) See :
A pathway that starts with the colon: special meaning is. In essence, the major colon: zero or more is done after "magic signature" letters (which alternately ends by another colon), and the pattern matching against the remaining path is
Top : Magic word header (magic sign: / ) matches the pattern of work tree, even if you are running commands from within a subdirectory.
Comments
Post a Comment