开发者

Is this Git workflow acceptable?

开发者 https://www.devze.com 2023-02-17 00:17 出处:网络
Git Workflow Developer 1 (France) - Local Machine - Local Project Files - Local repository Developer 2 (Brasil) - Local Machine - Local Project Files - Local repository

Git Workflow

  • Developer 1 (France) - Local Machine - Local Project Files - Local repository
  • Developer 2 (Brasil) - Local Machine - Local Project Files - Local repository
  • Github - Remote Machine - No Files At all - Remote Repository

Both developers, push and pull, by connecting the LOCAL Repository with the REMOTE repository on github.

Once we want to upload the project, we do so from ONE of the local machines, trough ftp, to our shared host.

Could this be an acceptable work-flow ?

Thanks in advance.

Update

So, and if I understood well alexcepoi comment, we can accomplish th开发者_开发百科e above by doing:

Git Workflow - v2 :)

  • Developer 1 (France) - Local Machine - Local Project Files - Local repository
  • Developer 2 (Brasil) - Local Machine - Local Project Files - Local repository
  • Github - Remote Machine - No Files At all - Remote Repository
  • Local Machine - No Files at all - Local Repository (from Pull Github Remote Repository).

I'm new, and I'm sure I will mess up on something IF I have, on the same machine, two git clients. (if this is possible), one for development. Another for "pull from github" and upload using ftp.

Should we have another machine, and then we ssh to it somehow? So that we can perfectly realise that we ARE NOT messing around?

What do you think?

Thanks a lot again, and sorry for all those dummy questions. Really. :)


I don't see why not. You can replace the ftp with another git client that tracks the master branch if you want...


I should use something like Capistrano for the deployment. But if you deside to not do that, than you can use ftp also ofcourse. Just be sure to pull first before deploying :)

0

精彩评论

暂无评论...
验证码 换一张
取 消