git add 失敗 - Linux

By Ida
at 2017-07-12T15:31
at 2017-07-12T15:31
Table of Contents
各位前輩好,
小弟最近在練習使用git版本控制
利用keil c編譯C的程式碼燒進STM32
今天在做git add --all的時候一直會跑出
fatal: unable to stat 'Inc/Copter.h~RF10372f.TMP': Permission denied
的訊息
就算幾分鐘前才add成功,可能寫幾行程式碼再add就會失敗
於是我想說試試看stash 結果跑出
error: lstat("Inc/Copter.h~RF10372f.TMP"): Permission denied
fatal: Unable to process path Inc/Copter.h~RF10372f.TMP
Cannot save the untracked files
的錯誤訊息
想請問有什麼辦法可以解決嗎?
( 稍早出現的時候是重新開機才解決的... )
--
小弟最近在練習使用git版本控制
利用keil c編譯C的程式碼燒進STM32
今天在做git add --all的時候一直會跑出
fatal: unable to stat 'Inc/Copter.h~RF10372f.TMP': Permission denied
的訊息
就算幾分鐘前才add成功,可能寫幾行程式碼再add就會失敗
於是我想說試試看stash 結果跑出
error: lstat("Inc/Copter.h~RF10372f.TMP"): Permission denied
fatal: Unable to process path Inc/Copter.h~RF10372f.TMP
Cannot save the untracked files
的錯誤訊息
想請問有什麼辦法可以解決嗎?
( 稍早出現的時候是重新開機才解決的... )
--
Tags:
Linux
All Comments

By Ivy
at 2017-07-12T20:52
at 2017-07-12T20:52

By Kyle
at 2017-07-13T20:16
at 2017-07-13T20:16
到git,建議用gitignore把這類temp檔ignore掉,不要上到git

By Sierra Rose
at 2017-07-18T07:49
at 2017-07-18T07:49

By Eden
at 2017-07-23T01:19
at 2017-07-23T01:19
.gitignore

By Carolina Franco
at 2017-07-23T16:18
at 2017-07-23T16:18

By Skylar Davis
at 2017-07-25T19:43
at 2017-07-25T19:43

By Regina
at 2017-07-30T13:10
at 2017-07-30T13:10

By Ina
at 2017-08-03T22:27
at 2017-08-03T22:27

By Elvira
at 2017-08-04T12:21
at 2017-08-04T12:21

By Michael
at 2017-08-06T07:08
at 2017-08-06T07:08

By Elma
at 2017-08-10T21:41
at 2017-08-10T21:41

By Genevieve
at 2017-08-15T20:24
at 2017-08-15T20:24

By Irma
at 2017-08-18T11:20
at 2017-08-18T11:20

By Regina
at 2017-08-21T02:31
at 2017-08-21T02:31

By Charlotte
at 2017-08-22T12:58
at 2017-08-22T12:58
Related Posts
Ubuntu Unity設定快速鍵?

By Ula
at 2017-07-11T14:12
at 2017-07-11T14:12
Ubuntu Unity設定快速鍵?

By Michael
at 2017-07-11T11:03
at 2017-07-11T11:03
wget抓取網頁內容疑問!?

By Margaret
at 2017-07-10T18:47
at 2017-07-10T18:47
如何於 Runlevel 3 自動執行script?

By Ingrid
at 2017-07-10T11:52
at 2017-07-10T11:52
寫程式用mac安裝的問題

By Faithe
at 2017-07-09T16:34
at 2017-07-09T16:34