git = qisrc.git.Git(booz_proj.path)assertgit.get_current_branch() =="devel"git_server.change_branch("booz","master") qisrc_action("sync","-a", retcode=True) qisrc_action("checkout","devel")assertgit.get_current_branch() =="master" 开发者ID:Mhalla,项目名称:qibuild,代码行数:13,...
git remote set-head <name> (-a | -d | <branch>) // git remote set-branches [--add] <name> <branch>... git remote set-url [--push] <name> <newurl> [<oldurl>] git remote set-url --add [--push] <name> <newurl> git remote set-url --delete [--push] <name> <url> ...
Get the current git branch name using Node.js Install npm install node-git-current-branch --save Usage constgetCurrentBranchName=require('node-git-current-branch');getCurrentBranchName();// branch name or false API getCurrentBranchName([ path ]); ...
submodule.Fetch (monitor, submoduleRemote);if(submodule.GetCurrentBranch() != gitBranch) { submodule.CreateBranch (gitBranch, submoduleRemote +"/"+ gitBranch,"refs/remotes/"+ submoduleRemote +"/"+ gitBranch); submodule.SwitchToBranch (monitor, gitBranch); } } }catch{ Directory.Delete ...
$ npm install --save git-branch Usage constbranch=require('git-branch'); Optionally pass the cwd (current working directory) as the first argument. Promise branch('some/path').then(name=>console.log('Branch:',name))//=> 'Branch: master'.catch(console.error); ...
Learn more about the Microsoft.TeamFoundation.SourceControl.WebApi.GitUtils.GetFriendlyBranchName in the Microsoft.TeamFoundation.SourceControl.WebApi namespace.
To get the source, you can either just download a zipped copy of the latest master branch or clone the source base with git, like so: XMLCopy $ git clone https://github.com/NuGet/NuGetGallery.git When you’ve done this, you’ll have the entire source base locally. At its root you...
defaultBranch string id string isFork boolean 如此 如果存储库是作为分支创建的 name string parentRepository GitRepositoryRef project TeamProjectReference 表示对 TeamProject 的浅表引用。 remoteUrl string size integer 存储库的压缩大小 (字节) 。
defaultBranch string id string isDisabled boolean 如果存储库处于禁用状态,则为 True。 否则为 False。 isFork boolean 如此 如果存储库创建为分叉。 isInMaintenance boolean 如果存储库处于维护状态,则为 True。 否则为 False。 name string parentRepository GitRepositoryRef project TeamProjectReference...
branchstring 代码分支 master commintstring 提交信息 JSON 数据 {} repostring 代码库地址 http://codeup.aliyun.com/a.git stagesarray 阶段信息 object namestring 阶段名称 Java构建 stageInfoobject 阶段详情 endTimelong 结束时间 1586863220000 startTime...