[英]How to use git to do version control when I edit my code in Windows but build and run my code in Linux (using pycharm)
[英]How do I use git to version control my jBPM project assets?
我在 docker 中運行了一個新的 jboss/jbpm-server-full。 我有一個空間和項目,但我也可以開始一個新的。
我知道我可以使用git clone ssh://wbadmin@0.0.0.0:8001/SomeSpace/SomeProject
從容器內部克隆現有的空間/項目到我的本地機器,但我想將我的東西保存在 Bitbucket 中。
我嘗試使用 Bitbucket 存儲庫 URL“導入項目”,但它不接受我的身份驗證/憑據。 我應該怎么做才能讓我的空間或我的項目進入 Bitbucket,然后從 Bitbucket 回到 jBPMS?
我發現了一個工作流程(我們使用 bitbucket,但也應該適用於其他人)。 這假設您對 Bitbucket 使用 SSH 密鑰身份驗證。
在本地克隆該項目(更改 URL、安裝、端口、空間和進程以滿足您的需要)
$ git clone ssh://wbadmin@0.0.0.0:8001/MySpace/MyProcess
打開 git repo 並將您喜歡的 git 存儲添加為新的遙控器——這里“bitbu”是我給遙控器的昵稱
$ git remote add bitbu bitbucket.org:your-thingy/your-repo-name.git
如果需要,請進行更改並首先直接推送到 jBPM
$ git commit -a -m "Test commit" && git push
然后將這些相同的更改推送到另一個倉庫;
$ git push bitbu
這確實意味着您必須記住手動將更改推送到 bitbucket。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.