我使用GitHub來維護我的項目。我的存儲庫有問題。它包含一個文件:Git不會將本地存儲庫與遠程存儲庫同步
public function download($download_path, $download_file) {
file_put_contents($download_path, $download_file);
}
當地的一個樣子:
public function download($path, $file) {
file_put_contents($path, $file);
}
雖然當我嘗試同步我的本地庫與遠程一個與git push
它說:
Everything up-to-date
有什麼問題? git pull
也不起作用(Already up-to-date.
)
您是否在本地提交了更改? – Chris 2014-08-29 14:44:02
@Chris我該怎麼做? – 2014-08-29 15:23:31
取決於您使用的工具。在命令行中,像'git add the-file','git commit'。你說「我使用GitHub來維護我的項目」,但這實際上是Git所做的最基本的事情。也許你需要閱讀教程? – Chris 2014-08-29 15:45:32