0

I'm using gitflow, and I changed of computer, my feature called 'migration' is showed like remote branch

git branch -a
* develop
  master
  remotes/origin/HEAD -> origin/develop
  remotes/origin/develop
  remotes/origin/feature/migration

what is the right way to pull that branch, and complete the work, then do commits and push. I was using gitkraken, but i feel have bugs when you are in complex scenaries and with more than one features open, do the things very automatically in the wrong way.

DDave
  • 1,400
  • 3
  • 16
  • 33

1 Answers1

0

Just git checkout feature/migration and it will create the branch locally then set up upstream.

You'll be able to work on it as usual, make changes, add, commit and push without additional steps.

Romain Valeri
  • 19,645
  • 3
  • 36
  • 61
  • accort to duplicate question link, is not secure if there is more one remote branch, there is not better use the complete name ? something like: git checkout remotes/origin/feature/migration , so i'm sure ? – DDave Nov 19 '18 at 10:29
  • No, if you do that you won't create a local counterpart for the remote branch. You seem afraid of something but I can't figure out what. – Romain Valeri Nov 19 '18 at 10:31