Recently accidentally committed the wrong files to Git, but didn’t push the commit to the server yet. Then I wanted to undo those commits from the local repository, So In this article, I’m going to share with you how to do that.
$ git reset HEAD~ # (1)
[ edit files as necessary ] # (2)
$ git add . # (3)
$ git commit -c ORIG_HEAD # (4)
I hope, I got you covered, Now let’s see the meaning of each of the above steps;
Have you ever wondered about other alternative ways to install and run your WordPress website? In this article, I’m going to explain how you can install and run a WordPress inside Google App Engine.
If you work on multiple Python projects, you’ve probably run into this one time or another. You have the latest and greatest version of Python installed, and the project you’re about to work on requires an older version. In those situations, the Python Version Manager(pyenv) is a great tool to use, allowing you to install multiple versions of Python and switch between them as you see fit.
In this tutorial, you will install
pyenv and learn to install, remove, and switch between different versions of Python.
If you work on multiple Node.js projects, you’ve probably run into this one time or another. You have the latest and greatest version of Node.js installed, and the project you’re about to work on requires an older version. In those situations, the Node Version Manager (nvm) is a great tool to use, allowing you to install multiple versions of Node.js and switch between them as you see fit.
In this tutorial, you will install
nvm and learn to install, remove, and switch between different versions of Node.js.
To complete this tutorial, you will need the following:
Recently I had to switch to a new mac book pro, Then I had to install every tool from the beginning which I was using in the previous mac book pro. So I thought of bringing series of medium articles which might be helpful for any developer to set up their own development environment without a hassle. In this article, I'm going to describe how to set up this awesome terminal tool iterm2 with Z shell and Oh My Zsh Framework.
In the previous article, we discussed some of the basic concepts and terminologies around the APIs, in this article we will be looking into different kinds of threats which can be a threat to your APIs.
Vulnerabilities are the gaps or weaknesses in a system that make threats possible and tempt threat actors to exploit them.
As we discussed earlier, the exponential growth of API usage in today’s digital world brings the risk of those APIs being vulnerable to attacks. …
What is an API?
If you are not aware of what is an API, I suggest you to go and read this article first and come back.
Did you know that today 83% of web traffic is API driven? I hope you never thought, based on a recent report from Akamai, now more than 83% of web traffic is API driven. This traffic can vary from tech-based companies to clothing stores, etc as many of the organizations rely on a large number of different services that provide using APIs. At the same time, it has increased the attacks against these…
If you are an expert on React of if you have some level of experience with React or React Native development, you might have come across with different difficult situations like where you need to pass the data deep down in the child component hierarchy, that becomes cumbersome when you have a very deep child component hierarchy. …
I hope you have a better understanding of React Hooks basics. If you are not familiar with why and what about React Hooks and Basics, I highly recommend you to read the first article on this article series and follow onwards to deeply understand everything about React Hooks and it’s usage.
const value = useContext(NewContext);
useContexthook is a part of the React Context API. Also I have created separate Article on React Context API, hence I’m not going to explain
useContexthook much detail in this article.
If you look at the syntax above it accepts an object…
I hope you have a solid understanding of what are git hooks and their usages, If not I highly recommend you to read my previous article on Git Hooks.
Git hooks are a useful feature that can be used to manage the integrity of your source repository, it becomes much handier if the hooks can be shared between team members, as the hooks are localized to once’s device’s single project. Since all the git hook templates reside inside the folder
.git/hooks and it does not track by git versioning system, it’s become a problem to share whatever the hooks you…
Versatile Full-stack Developer with 5+ years of experience designing, developing, and managing complex applications and internal frameworks.