nus-cs2113-AY2122S2 / forum

3 stars 2 forks source link

sourcetree push error again #22

Closed Yzkkk closed 2 years ago

Yzkkk commented 2 years ago

hi, last time i was able to successfully push but today it suddenly ask me login (which i did using personal access token) but still unable to push. Screenshot (596) Screenshot (597)

okkhoy commented 2 years ago

Strangely, it seems like this can happen when you have an outdated git version. Please check this link for instructions.

Yzkkk commented 2 years ago

Screenshot (599)_LI

okkhoy commented 2 years ago

Hmmm strange.. seems to work for me. image

  1. Are you using WSL? If so, try this link.
  2. Are you using the git that is bundled with sourcetree (embedded git)? If so, go to Sourcetree -> Tools -> Options -> Git -> Git version -> Update Embedded. image
okkhoy commented 2 years ago

@Yzkkk Was the problem solved? If so, can you please summarize the issue and what solved the problem? It would help the others who may face similar issues.

Yzkkk commented 2 years ago

I tried the second method and the credential helper window still pops out when I tried to push, and after I selected "wincred" it seemed to work somehow. I suppose the credential helper is not supposed to appear, but eventually, it still worked without giving errors.

okkhoy commented 2 years ago

I see. Thanks for the update. Git started using a new credential helper/store in the recent past. I suppose these are the after-effects.