Total Posts

0

Total Commits

0

(v1: 0, v2: 0)
Total Deployments

0

Latest commit:Unable to fetch commit info
9/2/2025
Latest deployment:
pending
9/2/2025
v2
Started 9/2/2025

Built by Remco Stoeten with a little ❤️

Welcome to Snippets
Git Branch Diverged
Git Set Upstream
Git

Git Branch Diverged

Are you also frustrated when that 'do you want to rebase, merge or else' question pops up?

If you clone, and get the question of merge /rebase or else, when your copy is different, and you don't feel like figuring out the history simply do:

git branch -D <branch-name>

This will delete the branch locally.

If you want to delete the branch from the remote, you can do:

git push origin --delete <branch-name>

Prevent system from prompting for your password when you type sudo

Previous Page

Git Set Upstream

When working on a new repository and you want to create a new branch it'll prompt you to set the upstream branch.

Sep 2, 2025
3 min read
510 words