Problem when doing branch checkout - Bitbucket

Asked

Viewed 295 times

0

I created a branch in bitbucket and I can’t check out anyway. The command I normally use is:

git fetch && git checkout

I type the command into the local terminal and it simply checks out on the branch, continues on the master.

inserir a descrição da imagem aqui

See that I am still in the master "branch". I tried to do it in different seasons and the same thing happens.

Branchs in the bitbucket: inserir a descrição da imagem aqui

  • Tried to pull too?

  • Yeah, it says it’s already updated. root@Fred:/var/www/html/gseg/gseg# git pull | Password for 'https://[email protected]': | Already up-to-date.

  • Can the branch be listed by git? If so, it’s something very strange :/

  • It seems that the fetch returned error. git fetch; echo $? returns 0 or something else?

  • Yes, the branch is created in bitbutcket Paulo. I inserted an image there in the question.. But in git status it does not appear, there is some other way to check?

  • Jeferson, I couldn’t find where the fetch error returned.

  • I created a new Rach now with the name "test", it worked. I think the problem lies in using the underline. I didn’t know I couldn’t use it. Go ahead?

Show 2 more comments

1 answer

2


gives a "git status" to see if you have any files without commiting, git won’t let you check out with files without commiting. Another tip is you just give git checkout, the sequence of "git fetch && git checkout acoes_criminal" commands prevents the second command from running if the first gives error.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.