我和我的队友正在OpenShift上开展同一个项目.我们有几个必须在服务器上的分支,所以我们使用命令push --all,我们每个人(我和我的队友)都希望有一个本地分支(称为LocalTest)用于我们的本地测试和开发,所以问题是当我们使用push --allorigin分支时适用于所有分支机构LocalTest.
顺便说一下,我忘了指出,有时我们需要将其他分支合并到我们的本地分支,特别是在从服务器提取新的提交之后,还想从我们的本地分支机构中挑选甚至合并(很少)到其他分支机构.将推送到服务器.
在git中是否有任何命令,git push --all except branch-name什么是我们问题的最佳解决方案?
我有一个名为loading( 的变量false位于开头,是一个布尔变量)的变量和一个按钮,其文本取决于该变量。
我写了一个方法来为我做到这一点,如下所示:
\n\nchangeBtnTxt() {\n this.loginBtn = this.loading ? \'please wait\':\'login\';\n}\nRun Code Online (Sandbox Code Playgroud)\n\n现在,我想知道如何观察该变量的变化以使用RxJSObservable 观察该变量的变化以触发此方法。
这是我的组件
\n\nexport class LoginFormComponentComponent implements OnInit {\n loading = false;\n loginBtn = \'\xd9\x88\xd8\xb1\xd9\x88\xd8\xaf\';\n loginModel: LoginFormModel = new LoginFormModel();\n\n @ViewChild(\'loginForm\') form: any;\n\n constructor(private service: LoginFormService,\n private basicView: BasicViewService) {} // inject services to our component\n\n ngOnInit() {}\n\n login() {\n this.loading = true;\n this.changeBtnTxt(); // I want to remove this line and do the changes just by above …Run Code Online (Sandbox Code Playgroud)