我想删除本地和我在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上成功删除分支我需要做些什么
?
我的情况是这样......在同一个仓库工作的人从他的本地和远程仓库中删除了一个分支......
大多数在Stack Overflow或其他网站上询问此类问题的人都会git branch -a在其底部的远程跟踪分支列表中显示分支问题:
* master
develop
feature_blah
remotes/origin/master
remotes/origin/develop
remotes/origin/feature_blah
remotes/origin/random_branch_I_want_deleted
Run Code Online (Sandbox Code Playgroud)
但是,在我的情况下,不应该在那里的分支是本地的:
* master
develop
feature_blah
random_branch_I_want_deleted
remotes/origin/master
remotes/origin/develop
remotes/origin/feature_blah
Run Code Online (Sandbox Code Playgroud)
当我执行以下任何操作时,它不会在本地删除:
$ git prune
Run Code Online (Sandbox Code Playgroud)
我也尝试过:
$ git remote prune origin
$ git fetch --prune
Run Code Online (Sandbox Code Playgroud)
更有用的信息:当我检查git remote show origin它是如何看起来:
* remote origin
Fetch URL: utilities:homeconnections_ui.git
Push URL: utilities:homeconnections_ui.git
HEAD branch: master
Remote branches:
master tracked
develop tracked
feature_blah tracked
other123 tracked
other444 tracked
other999 tracked
Local branches configured for 'git pull':
develop merges with remote …Run Code Online (Sandbox Code Playgroud) pip,virtualenv和distribute?在我对问题4314376的回答中,我建议使用,ez_setup以便您可以安装pip并virtualenv如下:
curl -O http://peak.telecommunity.com/dist/ez_setup.py
sudo python ez_setup.py
sudo easy_install pip
sudo pip install virtualenv
Run Code Online (Sandbox Code Playgroud)
我最初是从Jesse Noller的博客文章中提取这些说明的,所以你想在Mac上使用Python?.我喜欢保持一个干净的全局site-packages目录的想法,所以我安装的唯一其他软件包就是 virtualenvwrapper和distribute.(distribute由于这个Python公共服务公告,我最近添加到了我的工具箱.为了安装这两个软件包,我使用了:
sudo pip install virtualenvwrapper
curl -O http://python-distribute.org/distribute_setup.py
sudo python distribute_setup.py
Run Code Online (Sandbox Code Playgroud)
要真正遵循Python公共服务公告,在全新的Python安装上,我会执行以下操作:
curl -O http://python-distribute.org/distribute_setup.py
sudo python distribute_setup.py
sudo easy_install pip
sudo pip install virtualenv
sudo pip install virtualenvwrapper
Run Code Online (Sandbox Code Playgroud)
在一个评论我的回答 …
在HTML5中,我知道<nav>可以在页面的标头<header>元素内部或外部使用 .对于同时具有辅助和主导航的网站,将辅助导航作为<nav>标头<header>元素内的元素包含主导航作为<nav>标头<header>元素外部的元素似乎很常见.但是,如果网站缺少辅助导航,则通常将主导航<nav>包含在标头<header>元素内的元素中.
如果我遵循这些示例,我的内容结构将基于包含或排除辅助导航.这引入了内容和风格之间的耦合,感觉不必要和不自然.
是否有更好的方法,以便我不会<header>根据包含或排除辅助导航将主导航从内部移动到标头元素外部?
<header>
<nav>
<!-- Secondary Navigation inside <header> -->
<ul>
<li></li>
</ul>
</nav>
<h1>Website Title</h1>
</header>
<nav>
<!-- Main Navigation outside <header> -->
<ul>
<li></li>
</ul>
</nav>
Run Code Online (Sandbox Code Playgroud)
OnlineDegrees.org是一个遵循上述模式的示例网站.

<header>
<h1>Website Title</h1>
<nav>
<!-- Main Navigation inside <header> -->
<ul>
<li></li>
</ul>
</nav>
</header>
Run Code Online (Sandbox Code Playgroud)
Keyzo.co.uk是一个遵循上述模式的示例网站.

Bruce Lawson和Remy Sharp介绍的HTML5有关于这个主题的说法:
标题还可以包含导航.这对于站点范围的导航非常有用,尤其是在模板驱动的站点上,整个
<header> …
我在不同的virtualenv环境中安装了很多相同的软件包.有没有办法可以下载一次包然后从本地缓存中安装pip?
这会减少下载带宽和时间.
我主要使用vim/gvim作为编辑器,并且正在考虑使用lxr(Linux交叉引用)和cscope或ctags的组合来探索内核源代码.但是,我没有使用cscope或ctags,并且想要听到为什么人们可以选择其中一个而不考虑我使用vim作为主编辑器.
在另一个问题中,如果我可以提供我遇到问题的阵列,其他用户会提供一些帮助.但是,我甚至在基本的I/O任务中失败,例如将数组写入文件.
任何人都可以解释我需要将4x11x14 numpy数组写入文件需要什么样的循环?
这个数组包含四个11 x 14数组,所以我应该用一个漂亮的换行符来格式化它,以便在其他数据上更容易读取文件.
编辑:所以我尝试了numpy.savetxt函数.奇怪的是,它给出了以下错误:
TypeError: float argument required, not numpy.ndarray
Run Code Online (Sandbox Code Playgroud)
我假设这是因为该函数不适用于多维数组?我想在一个文件中找到任何解决方案吗?
是否有一个首选的命名约定来创建一个由多个单词组成的Django应用程序?例如,以下哪项是首选?
my_django_appmy-django-appmydjangoapp 推荐解决方案虽然所有这些都可能 是语法上允许的选项1和3,但是有偏好吗?看看Django通过将应用程序名称和模型名称与下划线组合来创建表名的方式,我倾向于选项#1.
思考?
交互式,例如在Ipython会话中,或在脚本中,如何确定matplotlib正在使用哪个后端?
python ×4
git ×2
virtualenv ×2
cscope ×1
ctags ×1
distribute ×1
django ×1
django-apps ×1
file-io ×1
git-branch ×1
git-push ×1
git-remote ×1
html5 ×1
kernel ×1
matplotlib ×1
numpy ×1
pdb ×1
pip ×1
setuptools ×1
vim ×1