Install Sourcetree Mac
While there is a mono version of Git Extensions (v2.51 line) that does run just fine on Linux, it was my experience that even this mono version of GitExt doesn't work correctly on Mac (app crashes). It may be possible to resolve these issues but I don't believe there is any quick-and-easy path to getting it working. Sourcetree is a free Git client for Windows and Mac. Open and close the navigation menu. Install, update, and manage Sourcetree at scale in your managed enterprise.
I recently added my GPG key to my git in order to sign commits. While doing so I ran into big problem. SourceTree wouldnât allow me to configure it to use my HomeBrew GPG installation (Error message: Invalid GPG Path). By default SourceTree only works with the GPG Suite under MacOS, which is quite annoying since HomeBrew is pretty much my go-to approach to install anything command line related, as it should be for everyone đ
In order to get SourceTree working with GPG (GNUPG) under Mac you need to do the following.
1. First install all GPG HomeBrew packages and Pinentry for Mac
2 4 6 8 | 0A46826A sub rsa20482018-06-22[E][expires:2020-06-22] |
Now tell you git cli to sign your commits with the key, that you just generated (replace the key ID with the key from the previous step).
After youâve done this open SourceTree and then the settings (CMD + ,) and click on the âAdvancedâ tab on the right.
Click on Browse and navigate to /usr/local/bin , homebrew created already a symlink to ../Cellar/gnupg/2.2.8/bin/gpg here. Usually we would like to point SourceTree to this path and thatâs it. But wait if we select this directory and try to close the settings. We get this:
Annoying⌠but thereâs a little workaround. We will create a symlink to make SourceTree think there a file called gpg2 . So letâs just do that:
Select Remote
and Click Clone
next to the repository you created.
Select the local location where you want to sync your remote repository.
Click Clone.
Create a Sample File to Commit
Once repository is configured locally, try putting some file in the local location. For example, put README.txt
.
You will notice in the SourceTree, README.txt
file will appear.
Install Sourcetree Windows
To commit that file, tick on that file and click Commit
.
Make sure to add your comment. You can also tick the Push changes immediately to origin/master
this will commit and push at the same time.
Install Sourcetree Mac Operating System
Check your Bitbucket repository on your browser and you can see the file you pushed is on your repository.