Quantcast
Channel: PapayaSoft - Phuket web development
Viewing all articles
Browse latest Browse all 31

You've Ruined Me. All of you.

$
0
0

(A message to my colleagues and the broader dev community, in general)

Look at what you people have done to me in two short years.

So, I do a little work on a branch. Change a few files:

12345678910111213
davidweinraub@copernicus:~/apps/myproject [mybranch*]$ git stOn branch mybranchYour branch is up-to-date with 'origin/mybranch'Changes not staged for commit:  (use "git add <file>..." to update what will be committed)  (use "git checkout -- <file>..." to discard changes in working directory)    modified:   app/src/SomeProject/Controller/SomeSubspace/Featured.php    modified:   app/src/SomeProject/Controller/SomeSubspace/Shows.php    modified:   app/src/SomeProject/Model/SomeSubspace/Featured.phpno changes added to commit (use "git add" and/or "git commit -a")

Turns out that I only want to commit the two Featured files. So rather than mouse/trackpad, select, copy, paste, I do the following:

1
davidweinraub@copernicus:~/apps/myproject [mybranch*]$ find ./app/src/ -name "*Featured*.php" | xargs git add

which, of course, results in:

123456789101112131415
davidweinraub@copernicus:~/apps/myproject [mybranch*]$ git stOn branch mybranchYour branch is up-to-date with 'origin/mybranch'Changes to be committed:  (use "git reset HEAD <file>..." to unstage)    modified:   app/src/SomeProject/Controller/SomeSubspace/Featured.php    modified:   app/src/SomeProject/Model/SomeSubspace/Featured.phpChanges not staged for commit:  (use "git add <file>..." to update what will be committed)  (use "git checkout -- <file>..." to discard changes in working directory)    modified:   app/src/SomeProject/Controller/SomeSubspace/Shows.php

You’ve ruined me. All of you.

And seriously, I can’t thank you enough. Seriously. :D


Viewing all articles
Browse latest Browse all 31

Latest Images

Trending Articles





Latest Images