GitHub:Mac

Download the latest

Loading…

OS X 10.7+

Help & Keyboard Shortcuts

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

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

Getting started guide

The first port-of-call for those that are new to Git and GitHub. No programming knowledge necessary!

  1. First launch
  2. Working with repositories
  3. Making changes
  4. Viewing previous commits
  5. Branching out
  6. Merging branches

FAQs

  • How do I add repositories?
  • What is "Sync" & how can I push or pull?
  • Does GitHub for Mac run on OS X 10.6 Snow Leopard?
  • How do I remove a repository?
  • Can I have multiple Git remotes & non-GitHub remotes?
  • Why did my changes disappear when switching branches?
  • How do I set up my avatar?
  • "Clone in Mac" doesn't work.
  • I have more questions!

How do I add 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 is to clone straight 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

What is "Sync" & how can I push or pull?

If your repository has a remote connected, 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).

Push, pull or sync

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

How do I remove a repository?

You can remove repositories simply by control-clicking on a repository in the app, and selecting "Remove" from the contextual menu.

This will only remove the repository reference from GitHub for Mac. It won't delete your local copy or the remote from GitHub.com.

Does GitHub for Mac run on OS X 10.6 Snow Leopard?

No, GitHub for Mac requires OS X 10.7 Lion or higher.

We made this decision because the app relies on a number of technologies which are not available in Mac OS X 10.6 or earlier. We want to provide the best experience possible for the app's users, so we've made the choice to only support 10.7 and above, and not make earlier versions available.

Can I have 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' view and everything else should work as expected.

Why did my changes disappear when switching branches?

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.

How do I set up my 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.

"Clone in Mac" doesn't work.

The "Clone in Mac" button requires that you be logged into GitHub.com and GitHub for Mac at the same time. Logging in on the website and through GitHub for Mac's Preferences should then enable the "Clone in Mac" button.

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
View on GitHub
⌘ 1
History Tab
⌘ 2
Changes Tab
⌘ 3
Branches Tab
⌘ 4
Settings Tab

While writing a commit message

⌘ ⏎
Create Commit
  • The GitHub Blog
  • Support
  • Contact

© 2013 GitHub Inc. All rights reserved