Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

No prompt to Push after commit. Commit not pushed.

I am running SourceTree 4.1.3 on a Mac. 

When I:

  1. Stage files that have changed.
  2. Enter a commit message.
  3. Leave the "Push changes immediately..." checkbox UNchecked.
  4. Click the Commit button.

No error messages are displayed, but the Push button doesn't show a number (I'd expect a "1") and the commit doesn't appear on bitbucket.org. The History in SourceTree does show the commit with a commit number.

If I follow the same steps as above but do select the "push changes immediately..." checkbox, I get a "src refspec refs/heads/HEAD does not match any" error as shown here (in bold):

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/fc/1_ybtrqn5h54w29tft3l1fpm0000gn/T/SourceTreeTemp.89CL9b  

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags --set-upstream origin refs/heads/HEAD:refs/heads/HEAD 

Pushing to https://bitbucket.org/USERNAME/REPOSITORYNAME.git

error: src refspec refs/heads/HEAD does not match any

error: failed to push some refs to 'https://bitbucket.org/USERNAME/REPOSITORYNAME.git'

Completed with errors, see above

Here is the History tree that is displayed in SourceTree:

Screen Shot 2023-01-17 at 10.23.59 AM.png

Thanks for helping a git novice!

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events