Source Tree fails to commit on windows

I am encountering a problem that whenever I try to commit I get an error:

git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\Users\username\AppData\Local\Temp\2\dxy1tg2p.vfr

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin "(detached from someKindOfID):(detached from someKindOfID)"

Pushing to :"RepositoryURL"

fatal: remote part of refspec is not a valid name in (detached from someKindOfID):(detached from someKindOfID)

Unexpected end of command stream.

 

This happened to me after I have checked out the source.

 

this seems to be a duplicate of https://answers.atlassian.com/questions/104657 but this issue was on macOS(and so the given solution) and mine is on windows.

also there is an unanswered StackOverflow answer here: http://stackoverflow.com/questions/22058684/git-is-failing-to-stage-or-commit-with-sourcetree-in-a-windows-network-environm .

 

any help would be appreciated.

1 answer

1 accepted

This widget could not be displayed.

From the "detached from someKindOfID" it seems that you are trying to commit without being on a branch.

Double-click the name of the branch you are supposed to be on to check out the branch and try again.

Thank you very much Szakmary thanks for clarifying that(I am quite new to source tree), this solved my problem.

Doing this killed my stuck commit... the damned thing is nowhere to be found...

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

724 views 1 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you