草庐IT

powerShell

全部标签

git - PowerShell ISE 在 git checkout 上抛出错误

在PowerShell中,gitcheckout运行时没有任何错误消息。在ISE中,虽然gitcheckout仍然有效,但ISE会给出一条错误消息。>gitcheckoutmasterYourbranchisaheadof'origin/master'by3commits.(use"gitpush"topublishyourlocalcommits)git:Switchedtobranch'master'Atline:1char:1+gitcheckoutmaster+~~~~~~~~~~~~~~~~~~~+CategoryInfo:NotSpecified:(Switchedtobr

git - PowerShell ISE 在 git checkout 上抛出错误

在PowerShell中,gitcheckout运行时没有任何错误消息。在ISE中,虽然gitcheckout仍然有效,但ISE会给出一条错误消息。>gitcheckoutmasterYourbranchisaheadof'origin/master'by3commits.(use"gitpush"topublishyourlocalcommits)git:Switchedtobranch'master'Atline:1char:1+gitcheckoutmaster+~~~~~~~~~~~~~~~~~~~+CategoryInfo:NotSpecified:(Switchedtobr

Visual Studio Online 构建结束时的 Git 标记(Build vNext,托管池)

我想在VSObuildvNext上成功构建时自动标记提交。我已经阅读了包含此页面的文档https://msdn.microsoft.com/Library/vs/alm/Build/scripts/variables我已经设置了一个小的PowerShell脚本。首先,BUILD_REPOSITORY_AUTH_USERNAME变量(及其好友密码)似乎是空的。我猜他们只适用于外部gits?其次,构建的检查似乎是通过运行LibGit2Sharp的任务完成的,因此凭证不会存储在任何帮助程序中。这是我的PowerShell脚本:gittag$Env:BUILD_BUILDNUMBERgitst

Visual Studio Online 构建结束时的 Git 标记(Build vNext,托管池)

我想在VSObuildvNext上成功构建时自动标记提交。我已经阅读了包含此页面的文档https://msdn.microsoft.com/Library/vs/alm/Build/scripts/variables我已经设置了一个小的PowerShell脚本。首先,BUILD_REPOSITORY_AUTH_USERNAME变量(及其好友密码)似乎是空的。我猜他们只适用于外部gits?其次,构建的检查似乎是通过运行LibGit2Sharp的任务完成的,因此凭证不会存储在任何帮助程序中。这是我的PowerShell脚本:gittag$Env:BUILD_BUILDNUMBERgitst

git - Posh-Git 和 Posh-Hg 在一起?

您好,我是Git和Hg的忠实粉丝,在很多项目中都必须同时使用它们。我目前使用Posh-Hg,这是一个powershell插件,可以将当前分支和未完成的提交放在你的powershell中。除了Git之外,Posh-Git以类似的方式运行。有没有人成功地让两个powershell脚本一起玩得很好?http://poshhg.codeplex.com/http://github.com/dahlbyk/posh-git 最佳答案 在您的个人资料脚本中试试这个:functionisCurrentDirectoryARepository($t

git - Posh-Git 和 Posh-Hg 在一起?

您好,我是Git和Hg的忠实粉丝,在很多项目中都必须同时使用它们。我目前使用Posh-Hg,这是一个powershell插件,可以将当前分支和未完成的提交放在你的powershell中。除了Git之外,Posh-Git以类似的方式运行。有没有人成功地让两个powershell脚本一起玩得很好?http://poshhg.codeplex.com/http://github.com/dahlbyk/posh-git 最佳答案 在您的个人资料脚本中试试这个:functionisCurrentDirectoryARepository($t

git - "Too many revisions"git 消息

在git版本1.7.9.5上,尝试时gitstashshow-pstash@{"FridaySmarch1313:13:132013"}(来自Isitpossibletochooseagitstashwhenthey'redescribedbythedatestashed?)我收到错误信息Toomanyrevisionsspecified:stash@{FridaySmarch1313:13:132013}尝试以下操作时我也收到相同的错误消息gitstashshow"stash@{FridaySmarch1313:13:132013}"gitstashshow-pstash@{Frid

git - "Too many revisions"git 消息

在git版本1.7.9.5上,尝试时gitstashshow-pstash@{"FridaySmarch1313:13:132013"}(来自Isitpossibletochooseagitstashwhenthey'redescribedbythedatestashed?)我收到错误信息Toomanyrevisionsspecified:stash@{FridaySmarch1313:13:132013}尝试以下操作时我也收到相同的错误消息gitstashshow"stash@{FridaySmarch1313:13:132013}"gitstashshow-pstash@{Frid

git - SSH 注册机 "no such file or directory"

正在尝试为我的git生成公钥。使用Powershell。PS>ssh-keygen-trsa-b4096-C"my@emailaddress.com"Generatingpublic/privatersakeypair.Enterfileinwhichtosavethekey(//.ssh/id_rsa):Couldnotcreatedirectory'//.ssh':Read-onlyfilesystemEnterpassphrase(emptyfornopassphrase):Entersamepassphraseagain:Savingkey"//.ssh/id_rsa"fail

git - SSH 注册机 "no such file or directory"

正在尝试为我的git生成公钥。使用Powershell。PS>ssh-keygen-trsa-b4096-C"my@emailaddress.com"Generatingpublic/privatersakeypair.Enterfileinwhichtosavethekey(//.ssh/id_rsa):Couldnotcreatedirectory'//.ssh':Read-onlyfilesystemEnterpassphrase(emptyfornopassphrase):Entersamepassphraseagain:Savingkey"//.ssh/id_rsa"fail