Git common commands and scenarios (i)--Online Code updates and project code submissions

Source: Internet
Author: User

Turn: http://blog.csdn.net/lxlzhn/article/details/92061971. Project view or execution for test environment and online environment: git init: git initgit: Git pull[email protected]:p Roject.git 2. Project development for Development environments: (after development on 1 basis) first, the commit code involves a configuration, the content of which the tag code is submitted by which user, the name and email two items are required, and is set by the following command: Git config--global User.Name "lixinglei" git config--global user.email "[email protected]" After configuration, you can see through git config--list: [Plain]View Plaincopy
    1. [[email protected] ~]$ git config--list
    2. User.name=lixinglei
    3. [Email protected]
Configuration is a user-level (global) configuration, after configuration, all git warehouse submissions use the name and email to view the current changes, usually before committing to confirm: git status is more than Git status, View specific changes: Git diff (If you have a new add File: Git add file1.py if delete file: Git rm file2.py) determined the code is correct, the code commits, commit commits to the local: git commit file3.py s Ervice/file4.py-m "Release Notes" before pushing the local code to the server, it is often necessary to update the code on the line, which automatically merges the merge local code: Git pull[email protected]:p Roject.git the end is to push the local library code to the server: Git push[email protected]:p Roject.git

Git common commands and scenarios (i)--Online Code updates and project code submissions

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.