Book Your Free Call
Tim Mouskhelichvili • June 14, 2022 • 2 minutes to read
When working on a repository with Git, a developer, after doing a lot of modifications, may want to remove all of them and reset the branch to the remote branch. Luckily, Git offers easy ways of doing it. This [...]
Tim Mouskhelichvili • June 13, 2022 • 2 minutes to read
Git quickly became the most popular and the de-facto choice of most developers' version control software. It provides many commands that make tracking code changes easy. Some of those commands are popular (like git push or git commit), and [...]
Tim Mouskhelichvili • June 11, 2022 • 2 minutes to read
The git diff command helps developers see the changes between two data sources (commits, branches, etc.). However, sometimes this command shows whitespace differences between two commits. This behavior can be annoying for some developers. Luckily, Git offers many [...]
Tim Mouskhelichvili • June 10, 2022 • 2 minutes to read
Sometimes, a developer may stage a lot of files, by error, in Git. Unstaging each file one by one would be a lengthy task. Luckily, the developers that work on Git have thought of this situation. Git offers an [...]
Tim Mouskhelichvili • June 8, 2022 • 3 minutes to read
The reduce function lets the developer iterate over an array and execute a reducer on each array element. This function returns a single result. Here is a simple example of the reduce function in TypeScript. const arr = [ [...]
Tim Mouskhelichvili • June 6, 2022 • 2 minutes to read
Sometimes, when a developer merges two projects, Git outputs the "fatal: refusing to merge unrelated histories" error. This error happens when Git tries to merge two project branches without a common base. Luckily, Git offers an easy command to [...]
Tim Mouskhelichvili • June 3, 2022 • 2 minutes to read
Let's say that after a successful rebase, you change your mind and want to undo the operation. Don't panic because Git offers an easy solution for this task. To undo a rebase, find the last commit before the rebase [...]
Tim Mouskhelichvili • June 3, 2022 • 2 minutes to read
When using the git cherry-pick command, a developer may need to abort its operation. Luckily, this is very easy to do in Git. The simplest way to abort a cherry-pick in Git is to use the --abort option: git [...]
Tim Mouskhelichvili • June 1, 2022 • 2 minutes to read
While working with Git, a situation may occur when a developer wants to revert multiple commits at once. This operation is possible and can be achieved in various ways. The easiest way to revert multiple commits is to use [...]
Tim Mouskhelichvili • May 31, 2022 • 2 minutes to read
If you regularly work with Git, you have surely noticed that Git doesn't like empty folders. It doesn't include them when you try to commit. Luckily, you can still add an empty folder in Git using a .gitkeep file [...]