以防第三方服務死亡或者訪問不能.
所以經常都會提交到別的地方作備份.
記錄一下同時提交的小技巧
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| # 打開專案下的 .git/config vim .git/config
# 可能會有有以下的結構 [remote "bitbucket"] url = [email protected]:USER/PROJECT.git fetch = +refs/heads/*:refs/remotes/bitbucket/* [remote "dropbox"] url = /Users/USER/Dropbox/PROJECT fetch = +refs/heads/*:refs/remotes/dropbox/*
# 在最後下新增類似以下內容,保存離開 [remote "all"] url = [email protected]:USER/PROJECT.git url = /Users/USER/Dropbox/PROJECT
# 最後就可以通過下面的 all 完成同時提交 git push all
|