I want to store github token in sourcetree, because for every small commit on repository it requires me to enter token.
Can you please guide me steps to store github generated tokens inside sourcetree because it is really inconvenient to enter tokens again and again
If you are using Sourcetree for Windows you should be prompted to enter the credentials via a GitHub branded GUI. This is the Git Credential Manager for Windows. It should prompt you and then when given good credentials store them and retrieve them anytime Git needs them.
However there have recently been a few bugs in the Git Credential Manager for Windows which ships with Git for Windows.
Quickest way to fix is to install Git for Windows 2.19.1 and then install Git Credential Manager 1.18.3 https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/1.18.3 then set Sourcetree to use this install in the Tools/Options/Git tab System Git option,.