Skip to content
sneppets

sneppets

  • Privacy

How to update or sync a forked repository on GitHub?

December 4, 2024December 4, 2024 Editorial StaffLeave a Comment on How to update or sync a forked repository on GitHub?

This sneppet will guide you on how to update or sync a forked repository on GitHub. Forking a repository is a usual practice in software development process. It allows you to work on a project independently, collaborate with others and… Read More!

Git git, github, sync

How to cache https credentials for pushing commits to git repository ?

December 2, 2024December 4, 2024 Editorial StaffLeave a Comment on How to cache https credentials for pushing commits to git repository ?

This sneppet will guide you on how to cache https credentials for pushing commits to git repository using git config command. git config command The git config command is used to set or retrieve configuration options for Git. It can… Read More!

Git git, git-config, git-push

What is the purpose of Git Stash command ?

October 31, 2023December 10, 2024 Editorial StaffLeave a Comment on What is the purpose of Git Stash command ?

In this sneppet you will learn what is Git Stash command and the when to use git stash command. Git Stash Command Use git stash command when you wanted to save the current state of your working directory and the… Read More!

Git git

How to create a Branch from a Tag in Git ?

October 30, 2023December 3, 2024 Editorial StaffLeave a Comment on How to create a Branch from a Tag in Git ?

In this sneppet you will learn how to create a Branch from Tag in Git using the “git checkout” command with -b option followed by new branch name and tag name. You will also learn how to create a Git… Read More!

Git git

Your branch and ‘origin/main’ have diverged, how to fix this ?

October 26, 2023October 30, 2023 Editorial StaffLeave a Comment on Your branch and ‘origin/main’ have diverged, how to fix this ?

I have been working in my local repository and on running command git status, I noticed that my local branch and main branch have diverged. The git status command shows “Your branch and ‘origin/main’ have diverged“. In this sneppet you… Read More!

Git git

Posts navigation

Older posts
Copyright © 2018 Sneppets. All Rights Reserved