GitHub:Mac

Download the latest

Loading…

Mac OS X 10.6+ 64-bit

Help & Keyboard Shortcuts

If you havin’ software problems I feel bad for you son

support@github.com
  • Overview
  • Help
  • Release Notes

Adding repositories

You can add a repository by dragging a folder to the application. If it is a Git repository, we’ll import all of the history and connect it to your GitHub accounts. If the folder isn’t a Git repository, we’ll prompt you to create a new repository from it.

Another great way to add repositories to clone from GitHub.com. After you've installed Mac, you'll get a new button on GitHub.com when you're logged in that allows you to clone with one click.

Screenshot Clone in Mac button

Publishing your code: push, pull and sync

If your repository has a remote connected, you'll be able to push, pull, or sync your branches with the remote repository.

Push, pull or sync

By default, we encourage you to use the Sync Branch button. In one step, we'll bring in new changes from the remote and push any commits you haven't published yet. Behind the scenes, we do the equivalent of a git pull --rebase (but make sure to never rewrite merges).

If you would like to perform a standard pull or push without syncing everything, you can do so via the Repository menu item.

Screenshot of the repository menu

Multiple Git remotes & non-GitHub remotes

GitHub for Mac does not support multiple Git remotes. We will only work with the origin remote. If you wish to push & pull to other remotes, we suggest that you use the command line client.

GitHub for Mac is optimized to work with GitHub remotes — but if you wish to use a non-GitHub remote, it will work just fine. Set the remote manually in the settings tab and everything else should work as expected.

Switching branches (why did my changes disappear?)

When you want to switch branches, click the branch icon in the lower left or use the ⌘+B shortcut to open the branches popover.

Screenshot of the branches popover

You'll notice when you switch branches we perform what we call magic stashing. Any time you have local file changes and switch branches, we'll save those changes and apply them when you switch back to the branch. This is different than the way the git command line client works — it may take some getting used to.

Setting up your avatar

Every time you create a commit, Git stores an email address inside of the commit. This is the email address you can find in the preferences screen.

We then use Gravatar to display an avatar for that email address. If you'd like to see your face next to commits, register a gravatar with the email address you use to make commits.

I have more questions!

Feel free to send us any additional questions you have to support@github.com and we’ll help you out. Night or day.

While inside a repository

⌘ S
Sync Repository
⌘ B
Switch Branches
⌘⇧ O
Open in GitHub.com
⌘ 1
History Tab
⌘ 2
Changes Tab
⌘ 3
Branches Tab
⌘ 4
Settings Tab

While writing a commit message

⌘ ⏎
Create Commit

Brought to you by GitHub

  • The GitHub Blog
  • Support
  • Contact

© 2012 GitHub Inc. All rights reserved

Powered by the Dedicated Servers and Cloud Computing of Rackspace Hosting®