5
"git pull" สามารถซ่อนและป๊อปการเปลี่ยนแปลงที่รอดำเนินการโดยอัตโนมัติได้หรือไม่
ฉันรู้วิธีแก้ปัญหานี้: user@host$ git pull Updating 9386059..6e3ffde error: Your local changes to the following files would be overwritten by merge: foo.bar Please, commit your changes or stash them before you can merge. Aborting แต่ไม่ได้มีวิธีการที่จะให้git pullทำstashและpopการเต้นรำสำหรับฉันหรือไม่ หากคำสั่งนี้มีชื่ออื่นก็ใช้ได้ การสร้างนามแฝงเชลล์git stash; git pull; git stash popเป็นวิธีแก้ปัญหา แต่ฉันค้นหาโซลูชันที่ดีกว่า