

If you want to know how to do it, check this post where you can find a guide of the whole process. Depending on the number of commits you want to amend or if they are already pushed to the repository, you’ll find more useful to rebase your history or directly reset from a good state. And it refuses it, I have to delete my account on sourcetree and add it again, then it works. Sourcetree is perfect for those new to Git or those looking to visualize their code. A tool that users know and love Still the same GUI client users know and love. Use your existing Bitbucket Server or Data Center credentials to confirm your identity when using the product. I already did some commits with a wrong author… now what?ĭon’t worry these things happens, that’s why Git implements multiple ways to fix this problem. Every time I have to fetch, pull or push, Sourcetree open a prompt asking me to confirm my Github credentials. Bitbucket sign-in No additional account signup required to use Sourcetree. If you followed correctly those previous steps and the emails that you are setting in both computers match, you should be ready to start developing things. This means that you will see two users in the history when you check your commits in GitHub. If you use the second option, you will be signing your commit with an author different than the pusher of the commits. An Sourcetree custom action for opening an Gitlab merge request window in the Google Chrome browser. Make sure that you are using the option Use default author and your credentials are correct. JCID / sourcetree-custom-action-gitlab-merge-request-opener. The second thing you need to check is the box on the bottom where you can write your commit message: If it’s different from the identity you want to use for this repository, uncheck Use global user settings and add the right information. If you have set another default account, maybe you will have a different user information here. In Windows/Mac, go to Settings (at the top right) and move to the Advanced tab: Then, when you are ready to start committing some work, let’s check if your repository settings are properly set. Once you finish, you can start cloning your repository and work in your project normally. For example, having only one key can shared across multiple devices can be comfortable, but if one of your devices is exposed you will have to remove the key from your account, create a new one and reconfigure that in all of your computers. It’s not important what you choose here, but bear in mind that each options has it’s advantages or disadvantages. After you select a Host, enter your hosting details. You can add multiple accounts to Sourcetree. To add repositories to Sourcetree, log in with your Bitbucket or Github account. About the SSH key you have to take a decision, you can reuse the same key from the first computer in the second computer or create a new one and adding it in your Github account (or other). Connect your Bitbucket or Github account.
