我刪除了一些文件,我應該這樣我用git reset --hard xxx
來取回它。從那以後,我產生了一些新的文件,並試圖通過git push -u origin master
推,我在終端Git重置和推
Updates were rejected because the tip of your current branch is behind
its remote counterpart. Integrate the remote changes (e.g.
'git pull ...') before pushing again.
See the 'Note about fast-forwards' in 'git push --help' for details.
但使用Git拉我失去了我的舊文件,只有新的文件後,仍得到這個。我應該怎麼做才能從之前的提交中獲得舊文件,做一些工作並推送它們?
將你提供的混帳引用日誌,命令的輸出,它很容易幫助您從這些日誌? – LethalProgrammer