Use git 2 to add and submit (study Note 2) to add and submit gitadd-I // add gitadd-p in interactive mode // use the path mode gitaddsomefilegitcommit-m & quot; in interactive mode; changestosomefile & quot; gitcommit-m & quot; changes. add and submit using git 2 (study Note 2) add and submit git add-I // in interactive mode add git add-p // path mode in interactive mode git add somefile git commit-m "changes to somefile" git commit-m "changes to somefile"-a git commit-m "changes to somefile" somefile git config -- global alias. ci "commit" completes git ci = git commit git diff -- cached git diff HEAD git mv index.html hello.html if you do not need git mv, you need git add new files and git rm old files to ignore files the version Library ignores the configuration file. gitignore ". *. swp "edit. the git/info/exclude file is ignored locally ". *. swp"
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