Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@japzio so I get that that's a joke but destroyed my brain a bit so wouldn't git just ignore the .gitignore file and thus not ignore it? 😂🤔🤯
-
mishaor17916y@RantSomeWhere here's a prank:
1. Make sure that your coworker has unfinished tasks and without some code the app won't run
2. Create a branch called 'its-just-a-prank-bro' but don't checkout it
3. Create/edit gitignore, so all app files and folders + gitignore would be ignored and add it
4. Commit it with message "Fixed critical bug"
5. Create an alias for git add which would add files to its-just-a-prank-bro
6. Create an alias for git commit which would commit in its-just-a-prank-bro branch
7. Create an alias for git status which would display a status of its-just-a-prank-bro branch but it would replace the name of that branch with master
8. Enjoy! His commits will never show up in master!
But how do we restore files?
1. Remove aliases
2. Merge its-just-a-prank-bro into master
3. Delete the commit with our prank
Related Rants
-
l0om44
100% Real. And it's not even the worst on the site.
-
Codazed11Being 100% serious, I saw a guy in my Computer Programming I class using MS Word to write code that he would c...
-
dfox8I worked with a good dev at one of my previous jobs, but one of his faults was that he was a bit scattered and...
Worst thing you've seen another dev do?
Not adding node_modules to gitignore.
rant
wk99