私信  •  关注

padawin

padawin 最近创建的主题
padawin 最近回复了
6 年前
回复了 padawin 创建的主题 » 是:git push<remote name>--delete<remote branch name>的某种别名吗?

对。从 man git-push :

格式是 git push <repository> <refspec> ,与 <refspec> 描述如下:

<refspec>
       Specify what destination ref to update with what source object. 
       The format of a <refspec> parameter is an optional plus +, followed
       by the source object <src>, followed by a colon :, followed by
       the destination ref <dst>.

然后:

推空 <src> 允许您删除 <dst> 来自远程存储库的ref。

6 年前
回复了 padawin 创建的主题 » 在macos上使用sed替换git日志中的名称(对于gource)

正如@wiktorstribizew所提到的,您可以:

sed -i -r "s/Doe, John|john_doe|John/user_john/g" combined.txt

有了它,你甚至可以:

sed -i -r -e "s/Doe, John|john_doe|John/user_john/g" -e "s/Wayne, Bruce|bruce_wayne|Bruce/user_bruce/g" combined.txt

并将更多替换项添加到 -e 选项:

   -e script, --expression=script
          add the script to the commands to be executed
6 年前
回复了 padawin 创建的主题 » 使用新分支生成git init

首先,这里没有任何错误,只是一个交互式提示。

第二,你在跑 git flow init ,不是 git init 是的。根据他们的自述文件,init交互地问你一些问题(参考。 https://github.com/nvie/gitflow#initialization ).

所以我邀请您查看他们的文档,建议您了解如何通过init。