git - I need help resetting my repository -


i have private repository on bitbucket use developing app on laptop , desktop. on laptop started working on new branch called bootstrap. cloned origin/master. unfortunately, forgot publish local master first. not realizing this, made 3 commits remote. made commits origin/master , remote not have bootstrap branch.

i tried push local master commits, tells me have 3 incoming commits. didn't realize of until pulled on desktop , mess. have no idea how proceed fix , desperately need help.

everything mess

then don't touch it.

  • clone again repo in local repo: @ least, reset.
  • add first local repo remote second: git remote add first ../firstrepo
  • git fetch first

then:

  • make bootstrap branch in new local repo: git checkout -b bootstrap
  • through nice log: git log --oneline --graph -all --branches, seek new commits in remotes/first, , cherry-pick them current bootstrap branch.

Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -