我有 2 个没有推送的提交:
$ git status
# On branch master
# Your branch is ahead of 'faves/master' by 2 commits.
Run Code Online (Sandbox Code Playgroud)
如何回滚我的第一个(最旧的),但保留第二个?
$ git log
commit 3368e1c5b8a47135a34169c885e8dd5ba01af5bb
...
commit baf8d5e7da9e41fcd37d63ae9483ee0b10bfac8e
...
Run Code Online (Sandbox Code Playgroud)
从这里:
http://friendfeed.com/harijay/742631ff/git-question-how-do-i-rollback-commit-just-want
我只需要做:
git reset --hard baf8d5e7da9e41fcd37d63ae9483ee0b10bfac8e
Run Code Online (Sandbox Code Playgroud)
那是?
我已经按照http://blog.bitfluent.com/post/27983389/git-utilities-you-cant-live-without添加git-completion.bash到我的/opt/local/etc/bash_completion.d/git-completion
然后我输入PS1='\h:\W$(__git_ps1 "(%s)") \u\$ '了我的 .bashrc_profile
但现在我得到了-bash: __git_ps1: command not found我所做的一切cd。
你能告诉我我错过了什么吗?
我以某种方式搞砸了我的 iTerm 配置。现在我单击 iTerm 图标,它会在 Dock 上显示菜单栏和图标,但不会弹出任何窗口。
所以我做了:
/Application并重新安装,~/Library/Application Support/iTerm,但这并不能解决我的问题。
请问还有其他想法吗?
删除规则时出现以下错误:
C:> netsh http delete urlacl url=http://localhost:80
URL reservation delete failed , Error: 87
The parameter is incorrect.
Run Code Online (Sandbox Code Playgroud)
当我执行 'netsh http show urlacl' 时,我看到以下规则:
Reserved URL : http://localhost:80/
User: myself
Listen: Yes
Delegate: No
SDDL: D:(A;;GX;;;S-1-5-21-124525095-708259637-1543119021-1467807)
Run Code Online (Sandbox Code Playgroud)
问题的原因是什么?
如何从 U 盘启动 Lenovo X1 Carbon 2014?它有 Windows 8.1。我试过了
http://www.howtogeek.com/175649/what-you-need-to-know-about-using-uefi-instead-of-the-bios/
但是当我启动笔记本电脑时,它无法从 USB 驱动器启动。它总是回到 Windows 8.1。
有谁知道如何让联想 X1 Carbon 从 USB 驱动器启动?
在MacBook Pro上安装 Ubuntu 的首选方式是什么?
我有一台装有 Mac OS X 10.5 的 MacBook Pro。有时我需要一个 Linux 环境。那么实现这一目标的最佳方法是什么?
我正在尝试使用在 Linux 上应用补丁 patch -p1 < name_of_a_patch.patch
我得到这条线说
patching file my_application.c
Hunk #1 succeeded at 96 (offset -27 lines)
Run Code Online (Sandbox Code Playgroud)
我看到一个文件 my_application.c.org
这是什么意思?
我已经在我的桌面上安装了 Visual Studio 2013。但是当我安装它时,我没有在安装时检查“Microsoft Foundation Classes for C++”。如何在不卸载 VS 的情况下重新添加该库/功能并重新安装?
谢谢你。
我在 Windows 2012 R2 上运行 IIS。出于某种原因,当我启动 IIS 时,http://localhost/link不会加载,但 http://{my machine name}/link 确实有效。
这告诉我我的 IIS 启动并侦听端口 80。并且能够将“链接”作为 url 路径处理。但是为什么http://localhost/link不会加载呢?我收到 503 错误。
当我打开 IIS 管理器时,我会在“起始页”下看到我的“机器名称”,当我将鼠标移到机器名称上时,它会显示“ http://localhost ”。但是当我在 IE 中加载 ' http://localhost ' 时,我得到一个 503。
你能告诉我在IIS中的哪里配置吗?或者我应该检查什么来调查这个问题。
我找到了这样的规则:
保留 URL:http://localhost:80/ 用户:aUser 监听:是 委托:否 SDDL:D:(A;;GX;;;;S-1-5-21-124525095-708259637-1543119021-1467807)
我能找出这条规则的作用吗?在我删除它之前?
我正在运行 Windows 10。我已经在我的计算机上安装了证书。我在我的 MMC 中看到了这一点。但是当我尝试为该证书导出 pfx 文件时。该选项是禁用。
我之前在同一台机器(比如机器 A)上成功导出了该证书的 pfx 文件。但是当我使用我指定的密码在另一台机器(比如机器 B)上安装 pfx 文件时。这没用。它说密码不正确或类似的东西。于是我回到证书机器(机器A),删除证书,重新安装证书。
之后,我无法再次导出 pfx 文件。有没有办法来解决这个问题?
你能告诉我如何解决这个问题吗?
当我尝试 repairstore 时,我得到 Object was not found 错误:
C:\WINDOWS\system32>certutil -repairstore my ?356000019dba8d5ddd348062b90000000001d
my "Personal"
CertUtil: -repairstore command FAILED: 0x80090011 (-2146893807 NTE_NOT_FOUND)
CertUtil: Object was not found.
Run Code Online (Sandbox Code Playgroud)
我在 ubuntu 上使用 tmux。我阅读了这个https://awhan.wordpress.com/2010/06/20/copy-paste-in-tmux/以在 tmux 中复制和粘贴。但我想知道如何从 TMUX 终端复制并将其粘贴到其他应用程序,例如我的操作系统中的浏览器?
是否有任何软件(首选免费)允许我复制 DVD(磁盘到磁盘复制)?
我已经安装了 Burn,但它似乎并没有让我做我需要的。
mac ×3
macos ×3
ubuntu ×3
git ×2
windows ×2
bash ×1
boot ×1
certificate ×1
dvd ×1
iis ×1
networking ×1
patch ×1
private-key ×1
security ×1
tmux ×1
windows-8.1 ×1