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
- [[email protected] ~]$ git config--list
- User.name=lixinglei
- [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