Skip to content
sneppets

sneppets

  • Privacy

Your branch is behind ‘origin/main’ by 2 commits, and can be fast-forwarded

October 19, 2023October 31, 2023 Editorial StaffLeave a Comment on Your branch is behind ‘origin/main’ by 2 commits, and can be fast-forwarded

Did you switch to main branch after doing development on some other branch for sometime ? And did you notice git status showing message “Your branch is behind ‘origin/main’ by 2 commits, and can be fast-forwarded“. This sneppet will guide… Read More!

Git git

How do you do undo git reset –hard HEAD^ and revert to previous commit ?

October 18, 2023December 2, 2024 Editorial StaffLeave a Comment on How do you do undo git reset –hard HEAD^ and revert to previous commit ?

In the previous sneppet Throw away the local commits from your branch in Git you had learnt how to discard local commits from your Git branch using git reset command. In this sneppet, you will learn how to undo git… Read More!

Git git

How to throw away the local commits from your branch in Git ?

October 11, 2023October 18, 2023 Editorial StaffLeave a Comment on How to throw away the local commits from your branch in Git ?

Let’s say you had checkout code from a branch and working on some changes and you did some local commits. Later, you realized that some of those changes are messy and you wanted to discard them. This sneppet guides you… Read More!

Git git
Invalid VCS root mapping android studio

Invalid VCS root mapping – android studio project error

March 10, 2021March 10, 2021 Editorial StaffLeave a Comment on Invalid VCS root mapping – android studio project error

This tutorial guides you on how to fix Invalid VCS root mapping android studio project error that you are facing while opening ionic project in android studio. Invalid VCS root mapping – android studio project error Basically, I just downloaded… Read More!

Git android, git, ionic
git tutorials

Git – How to compare files in two different branches

February 12, 2020October 11, 2023 Editorial StaffLeave a Comment on Git – How to compare files in two different branches

This tutorial explains you how to compare files in two different branches in Git.

Git git, git diff

Posts navigation

Newer posts
Copyright © 2018 Sneppets. All Rights Reserved