Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,084
Community Members
 
Community Events
165
Community Groups

Cannot update paths and switch to branch 'v99' at the same time

Hi all,

after many and many and many hours of test and readings of documentation (bad documentation) i must ask to anyone.

 

i try to use this pipelines

 

image: node:10.15.3
pipelines:
default:
- step:
name: "prova default"
script:
- git remote -v
- git fetch origin
- git checkout -b v99 origin/release/tag
custom:
test:
- step:
name: release new version tag
# trigger: manual
# caches:
# - node
script:
- git remote -v
- git fetch origin
- git checkout -b v99 origin/release/tag
release:
- step:
name: release new version tag
# trigger: manual
# caches:
# - node
script:
- git remote -v
- git fetch origin
- apt-get update
- apt-get install -y jq # install jq-
- git checkout master
- declare -x VERSION=$(jq -r '.version' package.json)
- echo "package.json version is $VERSION"
- git checkout origin/release/tag
- git merge origin/master
- echo \#\# version $VERSION >> RELEASE.md
- echo new version released >> RELEASE.md
- git add -f RELEASE.md
- git commit -m "version $VERSION released"
- git tag v$VERSION
- git push origin refs/heads/v$VERSION:release/tag --tags

 all steps in my console work fine, but for bitbucket no! the problem is when i try use

- git checkout -b v99 origin/release/tag

+ git checkout -b v99 origin/release/tag
fatal: Cannot update paths and switch to branch 'v99' at the same time.
Did you intend to checkout 'origin/release/tag' which can not be resolved as commit?

the same command in local in my console

 

C:\xampp\htdocs\personal\pipelines-react>git checkout -b v1.9 origin/release/tag
Switched to a new branch 'v1.9'
Branch 'v1.9' set up to track remote branch 'release/tag' from 'origin'.

 

why??how to resolved!!!!?!?!....about 4 hours of tests!!!!!!

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,237 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you