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.
我有一个应用程序(即 app1),其中包含正确的 git-setup。而且我有相同的应用程序(即app2),没有git。该应用程序具有所有最新更改。现在我想将 git 添加到 app2,然后想更新 app1。我怎样才能做到这一点?
嗯,好问题。不确定,但这样的事情应该可以解决问题:
app2
cd app2
mkdir tmp
cd tmp
git clone git://.../app1.git
git mv .git ..
cd ..
tmp
git status
始终尝试将您的代码置于版本控制之下。Git 的指纹非常小。