-1

我正在开发一个 Android 应用程序并希望实现以下目标:我正在使用两台 PC:一台在家里,一台在工作。我想让这些 PC 上的项目同步。因此,我在工作 PC 上编写代码,当我回家并启动我的 IntelliJ IDE 时,查看我在工作中编写的所有内容并从那里继续。现在,我知道这可以通过 Git 和 Bitbucket/GitHub 完成。问题是我从未使用过 Git,而且我也是 IntelliJ 的新手(从 Eclipse 切换)。有人可以解释如何实现这一目标吗?

谢谢。

4

2 回答 2

1

The easiest way to achieve this is just to have your workspace in a dropbox or google drive directory. It will automatically sync anything you do.

GIT and SVN are version control, and not really made for this. They are rather made to have a separation between your local development, and a, possibly live, working version.

I'd suggest you start off with using dropbox as a workspace, since it will solve your problem with syncing. If you never used GIT, it might be easier to start off with Subversion (SVN). GIT or SVN, either way you will want to do some research of your own what they are for and how to use them. Most IDEs give you proper plugins so this shouldn't be too hard.

于 2013-11-04T12:54:55.160 回答
0

用几句话回答您的问题是相当复杂的,尤其是当您没有任何使用上述工具的经验时。

我给你的建议是:

  1. 了解 Git 是什么以及它是如何工作的。您可以在此处找到教程:https ://www.atlassian.com/git和此处: http: //git-scm.com/book
  2. 大量练习 Git 基本命令、本地和远程存储库、提交等。
  3. 了解 IntelliJ 如何与 Git 存储库通信。
  4. 遇到困难时询问。

祝你好运

于 2013-11-04T13:05:42.330 回答