में अन-स्टेज्ड हटाए गए फ़ाइलों को साफ़ करने का आसान तरीका अक्सर मैं अपने आईडीई या कमांड लाइन (गिट एमवी के माध्यम से नहीं) के माध्यम से फ़ाइलों को एक गिट रिपोजिटरी में ले जाता हूं।गिट
एक परिणाम के रूप में मैं और कई unstaged फाइलों के साथ अंत पर हटाए जाने के लिए अपने अगले के रूप में नीचे के लिए प्रतिबद्ध:
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: test.html
#
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: css/bootstrap.css
# deleted: css/bootstrap.min.css
# deleted: img/glyphicons-halflings-white.png
# deleted: img/glyphicons-halflings.png
# deleted: js/bootstrap.js
# deleted: js/bootstrap.min.js
मैं आम तौर पर की गई सभी फ़ाइलों का चयन और उनकी तरह के उत्पादन के लिए एक पाठ संपादक में संपादित करेंगे :
git rm css/bootstrap.css
git rm css/bootstrap.min.css
git rm img/glyphicons-halflings-white.png
git rm img/glyphicons-halflings.png
git rm js/bootstrap.js
git rm js/bootstrap.min.js
जो मैं फिर कंसोल में फेंक देता हूं।
क्या कॉपी/पेस्ट किए बिना ऐसा करने का कोई तरीका है?
"Git -एक जोड़ें" होगा भी इस के लिए उपयुक्त हो सकता है? –