Jump to...
redirecting...

Log for Ubuntu 台灣社群

大家晚安
想請教一下
如果一個commit push到github後
才發現這個commit需要再修改
force push?
要怎麼做才可以把舊的拆掉 上傳新的
我剛 git commit —amend -m "msg" 後
就push 不上去了
就是用 force push 解套,可以查一下怎麼用
這個作法可能有其他副作用,如果有其他人共用 repo 的話不建議這樣做
! [rejected] main -> main (non-fast-forward)
error: failed to push some refs to 'github.com:***********/********.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
我force push 看看好了
謝謝大家 force push 上去了 😀
不知道為什麼網頁標題 cached 到 beta