Restore deleted files in a Git commit
Have you accidentally deleted a file? Or maybe you need to restore a file that was deleted? Here's how Git can help you.
Browse snippets by collection or check out our top picks and latest articles below.
Have you accidentally deleted a file? Or maybe you need to restore a file that was deleted? Here's how Git can help you.
View differences between staged or unstaged changes and the last commit in Git.
Learn how to create a new commit in Git, along with tricks to skip Git hooks and create empty commits.
Learn how to fetch the latest changes from the remote repository in Git and keep your local repository up to date.
Learn how to view or change the URL of the remote repository in Git.
Looking for a way to list all merged branches in your Git repository? Look no further.
Learn how you can leverage the Proxy object to use a JavaScript object the same way as you would use a regular array.
Easily remove duplicates from a JavaScript array using the built-in Set
object, and learn a few other tricks along the way.
Renders a tag input field.
Renders a Modal component, controllable through events.
Learn how JavaScript's iterators work and how you can use them to level up your projects by understanding these short code examples.
Calculate a SHA-256 hash in JavaScript using native APIs in both the browser and Node.js.