Git common commands (some tips) install gitJava code sudoapt-getinstallgit initialize gitJava code gitinit view file changes in the current directory Java code gitstatus tracking modify file Java code gitadd file name e. ggit... common git commands (tips) install git Java code sudo apt-get install git initialize git Java code git init view file changes in the current directory Java code git status tracking modify file Java code git add file name e. g git add README for version Java code git commit-m "remarks" Java code git commit-m-a 'Remarks information' (for files that are frequently modified, you can add the-a parameter, save every git add operation) view git modification log Java code git log view modification details ( Add the-p parameter) install the front-end tool using the Java code git log-p, and visually view the modified content. the Java code sudo apt-get install tig can be directly input to view the modified information, exit and use Ctrl + C to add the git account Java code git config -- global user. name "your name" git config -- global user. e-mail you@example.com to View added information Java code cat ~ /. Gitconfig
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