vlogstack
Ask

Solutions

One problem per page: a short video, the steps and the code to copy.

7.1MviewsStack Overflow

Format a date in JavaScript without a library

toLocaleDateString formats a date for a locale (en-US, en-GB, en-CA) or a style such as dateStyle: 'long'. toISOString is UTC and can show the day before.

JavaScriptdatetolocaledatestringtoisostringCodeman · ep. 05Solvedupdated Nov 23, 2026
12.3MviewsStack Overflow

Find every file containing some text with grep

grep -rn searches a folder recursively and prints every match with its line number; -l lists only the file names, --include keeps one file type.

Terminalgrepgrep-rfind-text-in-filesCodeman · ep. 03Solvedupdated Nov 23, 2026
13.6MviewsStack Overflow

Delete a Git branch locally and remotely

git branch -d removes your local copy (-D forces it when the branch is not merged); git push origin --delete removes the copy on the remote.

Gitgit-branchdelete-branchdelete-remote-branchCodeman · ep. 02Solvedupdated Nov 23, 2026
16.8MviewsStack Overflow

Undo your last Git commit (keep or drop the changes)

git reset --soft HEAD~1 removes the last commit and keeps your changes staged; git reset --hard HEAD throws the changes away too.

Gitgit-resetgit-reset-softgit-reset-hardCodeman · ep. 01Solvedupdated Nov 23, 2026

Error messages

All 5 errors →