3
我按照找到的指令設置我的主保管箱回購:http://tumblr.intranation.com/post/766290743/using-dropbox-git-repository。我能夠創建遠程並將repo克隆到另一臺計算機而沒有任何問題。我如何使用存儲在Dropbox中的git master在不同的計算機之間同步/更新文件?
現在我承諾在計算機B上的變化,並通過
git commit -m "test to see dropbox repo works" % commit changes to local repo
git push dropbox master % push to remote master located in the dropbox folder
它推到保管箱主人然後在電腦AI做
git pull dropbox master
這表明,它的更新,但是我沒有看到我修改的文件中的更改?我在這裏做錯了什麼?
你在兩個工作倉庫的'master'分支? – KingCrunch 2011-05-21 21:03:34
是的,我只想保持兩臺計算機同步到同一個存儲庫。 – adjfac 2011-05-22 15:51:04
@adjfac:你確定你不是在電腦上的獨立頭模式回購? (請參閱http://stackoverflow.com/questions/999907/git-push-says-everything-up-to-date-even-though-i-have-local-changes/1000009#1000009或http:// stackoverflow。 com/questions/5772192/git-how-can-i-reconcile-detached-head-with-master-origin/5772882#5772882 for more) – VonC 2011-05-22 16:17:26