iOS development--Development tips &git Common commands

Source: Internet
Author: User

Common git commands

Initialization
Git init plus-bare for remote repositories

Configuration
git config user.name icocos

Configure global
git config-global user.name Icocos
git config-global user.email [email protected]

State
git status

Add to Gang
git add icocos.m

Submit
git commit icocos.m-m "comment"

Log record
git log
Git log + file name
Git reflog all records


Back
"1 before submission
Git checout icocos.m
git reset-hard HEAD Note: There is no ^


"2 after submission
git reset-hard head^ forced reset (back to previous version)
Git Reset-hard + version number back to the specified version number





git diff View file changes (modify that place)


/********
Remote Configuration



Branch:
git tag-a v1.0-m ' versiion 1.0 '

View version:
git tag

Add to Server
Git Push Origin v1.0

iOS development--Development tips &git Common commands

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.