"Git add-a" is equivalent to "Git Add.; git add-U ".

Source: Internet
Author: User
  • git add -AStages all
  • git add .Stages new and modified, without deleted
  • git add -uStages modified and deleted, without new
git initecho Change me > change-meecho Delete me > delete-megit add change-me delete-megit commit -m initialecho OK >> change-merm delete-meecho Add me > add-megit status# Changed but not updated:#   modified:   change-me#   deleted:    delete-me# Untracked files:#   add-megit add .git status# Changes to be committed:#   new file:   add-me#   modified:   change-me# Changed but not updated:#   deleted:    delete-megit resetgit add -ugit status# Changes to be committed:#   modified:   change-me#   deleted:    delete-me# Untracked files:#   add-megit resetgit add -Agit status# Changes to be committed:#   new file:   add-me#   modified:   change-me

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.