fbpx

How to delete a Git branch locally and remotely?

In order to delete a Git branch locally and remotely, you need to run the following commands: Delete a Git branch Locally You can use -D instead of -d to force the branch deletion without checking the merged status. For example, if you would like to remove the topic/wip branch locally, run the following command: Delete a…

How to undo the most recent local commits in Git?

If you’ve ever wanted to undo the most recent local commits in Git before pushing your changes to production, you’ve come to the right place. There are two options to do this; both options reset the Git repository’s branch but one discards all of the changes while the other leaves the changes staged. Option 1:…

How do I revert a commit Git?

While developing software, you may run into a situation where a specific commit breaks functionality and undoing that commit will fix up the functionality. Step 1: Find the Commit Hash To revert a commit in Git, we need to first find the hash associated with the commit that holds the breaking functionality. To do this,…

System Restart Required Linux

When I first started building web servers using Linux I would run into the following message that would display whenever I SSH’ed into the server, and didn’t understand why I needed to restart the computer: Why do I need to restart the server? What does this message mean? I found out that you can see…