Sometimes you do something wrong. For example, push to master branch dev commits or something else, what does not have to find itself here. There are present a lot of official recommends how to push revert commits... but honestly, in my case, it does not work in proper way, as you want. So, I found ferroconcrete method how to solve this issue. But it seems to somebody not gracefully, but it works at least. First step: Revert to required commit. git reset --hard <commit-hash> (This command will reset the branch to the specified commit. Be cautious when using --hard as it will discard changes in your working directory and staging area.) Second step: Create new branch from this point. git checkout -b <new-branch-name> (This command creates a new branch and switches to it. Replace <new-branch-name> with the desired name for your new branch.) Third step: Remove your damaged branch on server. git push origin --delete <branch-name> (Replace <br...
First time in my life I needed to add placeholder for dropdown O.o I even didn`t know that it exists. But, anyway, I need to implement this case. I selected selectpicker from bootstrap to have ability to use live searching in dropdown. HTML for adding dropdown: <select class="dropdown" data-live-search="true"> <option class="hide" value="" disabled selected hidden>Placeholder</option> <option value="option1">Option 1</option> </select> Javascript: const select = $('select').selectpicker(); $('.dropdown').on('click', function () { $('.dropdown').find('.hide').hide(); });
Sometimes IDE starts to show something unpredictable and strange behavior. For example, PhpStorm says that class is not exist in your project. Or you set up incorrect namespace. Cause all of these things is broken indexes and IDE cache. To fix this problem easy: Go to Main Menu -> Invalidate Caches Choose Clear file system cache and Local History. Check VCS log caches and indexes. Invalidate and Restart . After that your IDE restarts and relaunch with new indexes. All have to work correctly.
Comments