Adding a remote git repo through intelliJ

后端 未结 3 973
Happy的楠姐
Happy的楠姐 2021-01-30 13:04

I want to know how to add a remote git repo via intelliJ, not through the git bash. Now, from what I\'ve seen in this tutorial, it can be done, but whenever I try to push, the d

3条回答
  •  鱼传尺愫
    2021-01-30 13:45

    If you want a menu entry, I think for now the easiest workaround is to create an "external tool" menu entry (Preferences -> Tools -> External Tools -> Add) in IntelliJ or Pycharm. I've created one that calls '/usr/bin/git' with 'remote add origin $Prompt$' (which opens a prompt window asking for the remote git URL) and the current dir field left blank. This works great for my workflow (create local git repository, later push it to a new remote one).

提交回复
热议问题