1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | pande@raspberrypi:~/Desktop/Website $ git push ssh://[email protected]/home/pande/Desktop/Website master:master [email protected]'s password: 枚舉物件: 9, 完成. 物件計數中: 100% (9/9), 完成. 使用 4 個執行緒進行壓縮 壓縮物件中: 100% (5/5), 完成. 寫入物件中: 100% (5/5), 516 位元組 | 516.00 KiB/s, 完成. 總共 5 (差異 3),復用 0 (差異 0),重用包 0 remote: error: refusing to update checked out branch: refs/heads/master remote: error: 預設禁止更新非純版本庫的目前分支,因為您推送的內容將導致索引和工作區 remote: 不一致,並且將需要執行 'git reset --hard' 將工作區符合到 HEAD。 remote: remote: 您可以在遠端版本庫中設定 'receive.denyCurrentBranch' 設定變數為 remote: 'ignore' 或 'warn' 以允許推送到目前分支。然而不推薦這麼做,除非您 remote: 用某種方式將其工作區更新至您推送的狀態。 remote: remote: 若要封鎖此訊息且保持預設行為,設定 'receive.denyCurrentBranch' remote: 設定變數為 'refuse'。 To ssh://192.168.50.227/home/pande/Desktop/Website ! [remote rejected] master -> master (branch is currently checked out) error: 推送一些引用到 'ssh://192.168.50.227/home/pande/Desktop/Website' 失敗 |
Direct link: https://paste.plurk.com/show/AMqHhf2jrNy3EW28rut1