简体   繁体   English

Git工作流程,IntelliJ项目

[英]Git workflow, IntelliJ project

I've just finished git tutorial on workflow and I've setup repo for my projecct (Github, IntelliJ). 我刚刚完成了有关工作流的git教程,并为我的项目(Github,IntelliJ)设置了存储库。 I'm not feeling it yet in 100%, and got a few questions. 我还没有100%感觉到,并提出了一些问题。 Hope u can help me. 希望你能帮助我。

1) Let's say I'm working on a 'feature-A' on my PC. 1)假设我正在PC上使用“功能-A”。 I need to finish it on my laptop. 我需要在笔记本电脑上完成它。 How to sync it? 如何同步呢? Should I just push 'feature-A' on origin and then pull it to my local repo on laptop? 我是否应该在原始位置上插入“功能-A”,然后将其拉到笔记本电脑上的本地存储库中?

2) In .gitignore I have excluded project files used by IDE (.iml, .idea, etc.). 2)在.gitignore中,我排除了IDE使用的项目文件(.iml,.idea等)。 I need to clone remote repo to my laptop but I also have to setup new project in IntelliJ. 我需要将远程存储库克隆到我的笔记本电脑,但是我还必须在IntelliJ中设置新项目。 How to do this right (I want to track master and develop branches). 如何正确执行此操作(我想跟踪master并开发分支)。

  1. yes, you can push it and then pull 是的,您可以先推然后拉
  2. IDE files usually are not committed into VCS. IDE文件通常不提交到VCS中。 You did it right, now just import project sources from Git remote repository (IDEA supports GitHub or any other Git remote repository) 您做对了,现在只需从Git远程存储库导入项目源(IDEA支持GitHub或任何其他Git远程存储库)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM