Ví dụ, đây là tình trạng của một chi nhánh tại kho lưu trữ địa phương của tôi:Cách thêm tệp được cam kết một cách nhanh hơn?
14:56:15 /srv/www/gamersmafia/current[max-decisiones]$ git status
# On branch max-decisiones
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: app/controllers/respuestas_controller.rb
# modified: app/helpers/application_helper.rb
# modified: app/models/decision.rb
# modified: app/models/gm_portal.rb
# modified: app/models/term.rb
# modified: app/views/respuestas/index.html.erb
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# app/assets/stylesheets/old/sprites/games_sprites.css
#
Nếu tôi muốn thêm các tập tin để thực hiện chúng, tôi phải viết đường dẫn đến tập tin, hoặc chọn và dán nó sau khi viết git add
.
Có cách nào nhanh hơn để làm việc với git chọn tệp để thêm, thanh toán, v.v ... không? Ví dụ: nếu tôi chỉ muốn thêm 2 tệp cho cam kết?
'git add' là đệ quy ..! – cmc