I like BitBucket – all the cool kids use Github, but for small businesses BitBucket is great. Why? Because it has free private repositories for teams of 5 or smaller. And that’s me right there.
You may need to double-check your SSH identities file. You may be guiding BitBucket to look at a different/incorrect private key to the equivalent public key that you have saved on BitBucket. Check it with tail /.ssh/config - you will see something similar to: Host bitbucket.org HostName bitbucket.org IdentityFile /.ssh/personal-bitbucket-ssh-key. Bitbucket is the Git solution for teams that's flexible, secure, and scalable. Streamline the development process through integrations and apps to give teams get a tool that fits into the fabric of your organization.
Currently I am using BitBucket for Brush Ninja, and I’ve recently started using it for Pro Theme Design. We use Git at Miniclip, and we also use a lot of the Atlassian suite. We actually host Git ourselves and don’t use BitBucket – but we do use Stash, Bamboo, Jira, and Confluence – so I’m quite well versed in their apps. As such I use SourceTree for my Git management. Much nicer than the command line – but also more complex than the Github Mac app.
Darren however isn’t used to SourceTree or BitBucket. He uses Github – and Github for Mac – but Github for Mac is designed around Github so using it for external repositories can be a little confusing. To help with this – I have written a short guide for adding an external repository to Github for Mac.
- Login to BitBucket and go to the repository you want to use
- Click the “Clone” button, and change the drop down option to HTTPS.
- Copy the command that appears (something like: git clone https://[email protected]/team-name/repository-name.git)
- Open terminal on your mac and navigate to wherever you want the theme files stored.
- Paste the clone command in the terminal, press enter and then enter your password when requested.
- In Github for Mac go to the repositories screen and click the + sign in the status bar.
- Select Add Local Repository – and then select the repository you folder you want to add.
- Done
Note that for this to work you will need to have Git installed on your dev machine. You can download Git from the official website.
I’ve only tried this with Github for Mac and BitBucket but I imagine the instructions will be basically the same for any 3rd party repository, and almost the same for the Windows version of the Github app.
Install Git on Mac OS X
There are several ways to install Git on a Mac. In fact, if you've installed XCode (or it's Command Line Tools), Git may already be installed. To find out, open a terminal and enter
git --version
.Apple actually maintain and ship their own fork of Git, but it tends to lag behind mainstream Git by several major versions. You may want to install a newer version of Git using one of the methods below:
Git for Mac Installer
The easiest way to install Git on a Mac is via the stand-alone installer:
- Download the latest Git for Mac installer.
- Follow the prompts to install Git.
- Open a terminal and verify the installation was successful by typing
git --version
: - Configure your Git username and email using the following commands, replacing Emma's name with your own. Mac delete application app. These details will be associated with any commits that you create:
- (Optional) To make Git remember your username and password when working with HTTPS repositories, configure the git-credential-osxkeychain helper.
Install Git with Homebrew
If you have installed Homebrew to manage packages on OS X, you can follow these instructions to install Git:
- Open your terminal and install Git using Homebrew:
- Verify the installation was successful by typing which
git --version
: - Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:
- (Optional) To make Git remember your username and password when working with HTTPS repositories, install the git-credential-osxkeychain helper.
Install Git with MacPorts
If you have installed MacPorts to manage packages on OS X, you can follow these instructions to install Git:
- Open your terminal and update MacPorts:
- Search for the latest available Git ports and variants:
- Install Git with bash completion, the OS X keychain helper, and the docs:
- Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:
- (Optional) To make Git remember your username and password when working with HTTPS repositories, configure the git-credential-osxkeychain helper.
Install the git-credential-osxkeychain helper
Bitbucket supports pushing and pulling your Git repositories over both SSH and HTTPS. To work with a private repository over HTTPS, you must supply a username and password each time you push or pull. The git-credential-osxkeychain helper allows you to cache your username and password in the OSX keychain, so you don't have to retype it each time.
- If you followed the MacPorts or Homebrew instructions above, the helper should already be installed. Otherwise you'll need to download and install it. Open a terminal window and check:If you receive a usage statement, skip to step 4. If the helper is not installed, go to step 2.
- Use curl to download git-credential-osxkeychain (or download it via your browser) and move it to
/usr/local/bin
: - Mac app store for windows. Make the file an executable:
- Configure git to use the osxkeychain credential helper.The next time Git prompts you for a username and password, it will cache them in your keychain for future use.
Install Git with Atlassian Sourcetree
Sourcetree, a free visual Git client for Mac, comes with its own bundled version of Git. You can download Sourcetree here.
To learn how to use Git with Sourcetree (and how to host your Git repositories on Bitbucket) you can follow our comprehensive Git tutorial with Bitbucket and Sourcetree.
Build Git from source on OS X
Building Git can be a little tricky on Mac due to certain libraries moving around between OS X releases. On El Capitan (OS X 10.11), follow these instructions to build Git:
- From your terminal install XCode's Command Line Tools (if you haven't already):
- Install Homebrew.
- Using Homebrew, install openssl:
- Clone the Git source (or if you don't yet have a version of Git installed, download and extract it):
- To build Git run make with the following flags:
Install Git on Windows
Git for Windows stand-alone installer
- Download the latest Git for Windows installer.
- When you've successfully started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. The default options are pretty sensible for most users.
- Open a Command Prompt (or Git Bash if during installation you elected not to use Git from the Windows Command Prompt).
- Run the following commands to configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:
- Optional: Install the Git credential helper on WindowsBitbucket supports pushing and pulling over HTTP to your remote Git repositories on Bitbucket. Every time you interact with the remote repository, you must supply a username/password combination. You can store these credentials, instead of supplying the combination every time, with the Git Credential Manager for Windows.
Install Git with Atlassian Sourcetree
![Mac Mac](/uploads/1/3/4/2/134200735/401679913.png)
Sourcetree, a free visual Git client for Windows, comes with its own bundled version of Git. You can download Sourcetree here.
To learn how to use Git with Sourcetree (and how to host your Git repositories on Bitbucket) you can follow our comprehensive Git tutorial with Bitbucket and Sourcetree. How to put app on home screen mac.
Install Git on Linux
Debian / Ubuntu (apt-get)
Git packages are available via apt:
- From your shell, install Git using apt-get:
- Verify the installation was successful by typing
git --version
: - Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:
Fedora (dnf/yum)
Git packages are available via both yum and dnf:
- From your shell, install Git using dnf (or yum, on older versions of Fedora):or
- Verify the installation was successful by typing
git --version
: - Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create
Build Git from source on Linux
Debian / Ubuntu
Git requires the several dependencies to build on Linux. These are available via apt:
- From your shell, install the necessary dependencies using apt-get:
- Clone the Git source (or if you don't yet have a version of Git installed, download and extract it):
- To build Git and install it under
/usr
, runmake
:
Navman app for mac windows 10. Fedora
Git requires the several dependencies to build on Linux. These are available via both yum and dnf:
- From your shell, install the necessary build dependencies using dnf (or yum, on older versions of Fedora):or using yum. For yum, you may need to install the Extra Packages for Enterprise Linux (EPEL) repository first:
- Symlink docbook2X to the filename that the Git build expects:
- Clone the Git source (or if you don't yet have a version of Git installed, download and extract it):
- To build Git and install it under
/usr
, runmake
: