Sourcetree is a free Git and Hg client under Windows and Mac OS X, as well as the mercurial and Subversion version control system Tools. Support for operations such as create, clone, commit, push, pull, and merge. Sourcetree has a beautifully simple interface that greatly simplifies the way git works between developers and CodeBase, which is useful for developers who are unfamiliar with git commands. Sourcetree has full git functionality: With a simple user interface, all git commands can be managed with a single click to manage all Git libraries, whether managed or local, with a single click to commit, push, pull, Merge and other advanced features such as patch handling, rebase, shelve, cherry picking can be connected to a codebase that you host in BitBucket, Stash, Microsoft TFS, or GitHub.
Installation of 1.sourcetree:
Open the store: Search for Sourcetree and download, install (free).
2. Register a git service (http://git.oschina.net/for example)
Open http://git.oschina.net/Register and verify, create or fork a project and open it.
Write down the address of the git file.
3. Open Sourcetree, click New
Fill in the address just now and select a local directory to store the code.
4. Now you can develop in the local directory, after the development is complete, open the Sourcetree again:
Drag the files in the working tree inside the index inside the file in the click on the "Commit" in the toolbar, click on the click on the commit in the pop-up box, clicking on the green push arrow, then your file will be successfully uploaded to the GIT repository!
5. If the error:failed to push some refs to error occurs because the local and remote version mismatch caused, then clone the code again to local ok~
Use Sourcetree to manipulate git tutorials under Mac