Home  >  Q&A  >  body text

在Windows下,比较好的git实践是怎样的?

描述

问题比较宽泛.
假设我在Windows下面做Java开发(必须使用IDE啊),希望自己的一个项目能够同github同步.

现在我是这样做的:
建立文件夹c:/a/b/c与github保持连接,然后使用IDE把项目建立到此文件夹下.现在我把代码推送到github上面=>每次都跑到此文件夹下面git bash=>git push origin master.
太蛋疼了.

使用的Java_IDE是IDEA, IDEA里面是否有更好的git功能?
恳请给点经验

滿天的星座滿天的星座2731 days ago644

reply all(7)I'll reply

  • PHP中文网

    PHP中文网2017-04-28 09:08:23

    The soul of git lies in its powerful commands, but you insist on ide...

    reply
    0
  • PHP中文网

    PHP中文网2017-04-28 09:08:23

    idea itself supports git

    Menu Bar - VCS - Git

    https://www.jetbrains.com/idea/features/version_control.html

    reply
    0
  • 世界只因有你

    世界只因有你2017-04-28 09:08:23

    You can use Tortoise Git, a visual client, with your own scripts. Because github is not very convenient, I use Oschina's git a lot. Oschina's git warehouse can use ssh key to verify the identity, which is very convenient for submission.
    In addition, intellij itself comes with scm plug-in.

    reply
    0
  • 黄舟

    黄舟2017-04-28 09:08:23

    I am from .net, and VS2013 integrates git. However, I am still not used to it. I like semi-command and semi-interface. There are many git plug-ins in VS that can also be used.

    reply
    0
  • 滿天的星座

    滿天的星座2017-04-28 09:08:23

    The Git operation integrated by IDEA is already very powerful. Even other win clients may not be much better than it. It is recommended that you read the following IDEA help manual carefully, which is very detailed. If you must process it outside of IDEA, then SourceTree is recommended, which is better than other GUI clients (but I think it is not perfect yet). As for best practices, of course you have to use Git from the command line, but the windows command line is a bit more fiddly.

    reply
    0
  • 为情所困

    为情所困2017-04-28 09:08:23

    http://eclipse.org/egit/

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-04-28 09:08:23

    For this, I highly recommend sourcetree, which is a very beautiful git client that is also very practical.

    reply
    0
  • Cancelreply