Rebase-push loops for git branches

I am currently using a github repository with a single branch based on the leading branch of another repository. The github branch is a backup of my work and is certainly not meant to be pulled, and therefore I am comfortable rewriting my story when reinstalling from the main repository.

My problem is that I want a clean story, and if the stories diverge, I can't do it. This happens if I do push (initial work) + rebase - the second press is rejected.

I tried to delete the branch and then click, but this has an unpleasant side effect from creating a drop-create repo, which is slow.

How do I approach this problem?

0
git git-rebase branch git-push
Oct 26 '09 at 23:27
source share
1 answer

git-push can accept the -f or --force to tell it to force push to update the remote ref (branch) to a local value.

+2
Oct 26 '09 at 23:29
source share



All Articles