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
remove http and https proxy settings of npm and git

How to remove http and https proxy settings of npm and git ?

July 10, 2021July 10, 2021 Editorial StaffLeave a Comment on How to remove http and https proxy settings of npm and git ?

This tutorial guides you on how to remove http and https proxy settings of npm and git. You will also learn how to configure npm and git to use proxy.

Angular git, https-proxy, node, npm, proxy
How to connect to Github using SSH

How to connect to Github using SSH ?

June 18, 2021October 11, 2023 Editorial StaffLeave a Comment on How to connect to Github using SSH ?

This tutorial guides you on how to connect to Github using SSH. While setting up development environment or checking out code from git for the first time, you may need to setup Github with SSH. So that it simplifies your… Read More!

linux git, github, ssh

Posts navigation

Older posts
Newer posts
Copyright © 2018 Sneppets. All Rights Reserved