Top "Git-branch" questions

git-branch is the Git command that manages branches.

What happen to Git tags pointing to a removed commit

Say I do the following: Create branch X Create Tag t (to branch X) Push Remove branch X What happen …

git git-branch git-tag
How to cherry-pick the last sha from another branch in Git with 1 command?

I find myself doing this a lot when cherry-picking a commit from another branch. $ git log -1 another_branch commit &…

git git-branch sha git-cherry-pick
git - confusion over terminology, "theirs" vs "mine"

I'm completely confused about what mine vs theirs means. In this specific case, I've got a feature branch where I …

git git-branch git-flow
Broken branch in git, fatal: your current branch appears to be broken

Here is my case: I was working on one branch. Pushed new commits to the remote. Switched back to the …

git git-branch fatal-error git-log blue-screen-of-death
How do I push different branches to different heroku apps?

I've been working on a web-app that gets pushed to heroku. The source is hosted on GitHub. So git push …

git heroku git-branch staging dev-to-production
What is github 'compare & pull request'

I am working on a MeteorIntegration (feature) branch that is published. I did a git push assuming the push was …

git github git-branch pull-request
git remote prune origin does not delete the local branch even if its upstream remote branch is deleted

This is a common use-case for me, I clone a repository, checkout a branch, do some code changes, make multiple …

git git-branch git-remote
Reverting to a specific commit without losing history

I know this type of a question has a lot duplicates, but I wanted to open a new one because …

git git-branch git-reset
Switch current branch in git bare repository

I actually want to remove a branch in the bare repository i am working with, but this task hits a …

git git-branch git-checkout