我是 Git 的新手。我一直在寻找答案,但找不到。
在我的电脑中我有一个这样的项目文件夹:
project_a
--some_folder
--another_folder
--.git
我在 GitHub 上有一个存储库,比方说 https://github.com/company/our_repo.git
。在此存储库下,我有一些文件夹。所以我的目标是将我的project_a
放在trunk/bin
下。我如何实现这一目标? (再次强调,我是非常非常非常新的。)
最佳答案
打开您的终端,访问此文件夹并写入:
git init
git add .
git commit -m "my commit"
git remote set-url origin git@github.com:username/repo.git
git push origin master
关于git - 如何将我当前的项目添加到现有的 GitHub 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16897723/