Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个裸 git 存储库,其中包含对 SVN 存储库的远程引用。 我也有一个克隆的存储库。我想让这个裸存储库始终同步,我正在执行 a git svn fetch,但是当我执行 a 时,我git log看不到最近更新的更改。 这个想法是在我的本地存储库中有一个本地分支连接到这个裸存储库的主控并执行一个git pull以带来新的更改。
git svn fetch
git log
git pull
有人知道正确的方法吗?
git svn fetch不更新master。看起来需要手动执行此操作。我这样做
master
git svn fetch git branch -m master master2 git branch --track master refs/remotes/trunk git symbolic-ref HEAD refs/heads/master git branch -d master2