Installation and simple use of Git on Mac

Source: Internet
Author: User
Tags git commands

First, Installation:

git:http://git-scm.com/downloads/

Download git, configure git:http://blog.csdn.net/reactor1379/article/details/8008677

Second, use:

(1)

1, create a new repository:ios-test can refer to: http://blog.csdn.net/delphiwcdj/article/details/23055125

2. Create a new local repository in your Mac: local_repository and switch to the directory via the terminal $CD/users/qianhua/desktop/wen/local_repository//Switch directory

Clone the repository on GitHub to Local_repository $git clone Https://github.com/ETmanwenhan/IOS-test.git will be in Local_ There's a Ios-test folder in Repository.

3. Manually add the MAPKIT1 project to Ios-test and execute the following GIT commands

$git Add. Add all files from the current directory to staging area

Executable $git status//view state

4. Submit the changes in staging area to the local warehouse

$git Commit-m ' notes submitted here: Submit to local repository '

5. Push the changed files in the local warehouse to the remote repository

$git Push Origin Master//clone operation will automatically use the default Origin[remote-name] and Master[branch-name]

(2) Diagram: Modify the file, submit to the local repository and push to the remote GitHub repository

Report:

git commands to memorize: http://www.2cto.com/kf/201212/179768.html

"Pro git" git Bible Chinese version: http://download.csdn.net/download/lidaasky/7496835

Installation and simple use of Git on Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.