Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

github for mac doesn't allow to perform partial checkin/commit

I am using GitHub for Mac, and have bunch of changes in my branch. I am have committed some of the changes and kept others as uncommitted as I am expecting some more changes. however, when I try to do sync in order to push those changes to Git repository it complains - 'Uncommitted Changes - Please commit all your changes before syncing.'

Any idea? does it expects all the changes to be committed all the time when you do sync?

like image 587
Mutant Avatar asked Feb 26 '12 03:02

Mutant


People also ask

How do I commit to GitHub on Mac?

with the Github for Mac appSelect the files that you want to commit their current state to the repository. You can view the changes of the file by clicking on the double up arrow on the file name bar. Type a commit summary, usually a description of what you've just added or changed. Click 'Commit'.

Does GitHub work on Mac?

To fully learn Git, you'll need to set up both Git and GitHub on your Mac. Both are long you've been programming, and what tools you've installed, you may already have Git on your computer. Open Terminal and enter git –version.

How do I commit a code to GitHub desktop?

Under the Description field, click Commit to BRANCH. If the branch you're trying to commit to is protected, Desktop will warn you. To move your changes, click switch branches. To commit your changes to the protected branch, click Commit to BRANCH.


1 Answers

Rather than "syncing" your changes, GitHub for Mac does offer you the ability to push, pull and sync changes. Unfortunately, the UI button is for sync only. However, if you go to the menu bar, under "Repository" you see there are two additional changes: push (command + P) or pull (shift + command + P).

like image 52
Curley Avatar answered Oct 06 '22 14:10

Curley