Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,556,149
Community Members
 
Community Events
184
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
AUG Leaders

Atlassian Community Events