我想删除本地和我在GitHub上的远程项目分支上的分支.
$ git branch -d remotes/origin/bugfix
error: branch 'remotes/origin/bugfix' not found.
$ git branch -d origin/bugfix
error: branch 'origin/bugfix' not found.
$ git branch -rd origin/bugfix
Deleted remote branch origin/bugfix (was 2a14ef7).
$ git push
Everything up-to-date
$ git pull
From github.com:gituser/gitproject
* [new branch] bugfix -> origin/bugfix
Already up-to-date.
Run Code Online (Sandbox Code Playgroud)
remotes/origin/bugfix在本地和GitHub上成功删除分支我需要做些什么
?
我有两个远程git存储库.origin和github
我将我的分支推devel送到两个存储库.
git push -u origin devel
git push -u github devel
Run Code Online (Sandbox Code Playgroud)
但是,当我这样做的时候.git push它只会被推到github.
无论如何我可以设置我的两个遥控器,以便我可以用一个命令将更改推送到两个存储库?
我怎样才能git push不仅推送到origin另一个远程存储库?
因为git push它只是一个别名git push origin,我可以将git push命名为同时推送到2个远程存储库(只用那个命令)吗?
我不是在寻找一个非git脚本,但是想在git中为我的本地存储库设置它.
当我用推后脚本尝试它时,我失败了.
在Github存储库和Openshift之间自动化同步的最佳方法是什么?
我在openshift中找到了这个文档:https://www.openshift.com/forums/openshift/how-to-keep-a-github-repository-and-an-openshift-repository-in-sync 用于手动进行同步化.