草庐IT

sharp-repository

全部标签

git - 如何确保 Visual Studio Online Git Repository 是私有(private)的?

我在VisualStudio.com上使用TeamServices的免费5用户计划.您能告诉我在哪里可以找到显示我拥有的Git存储库是公共(public)还是私有(private)的选项或提示吗?我试图在另一个用户登录的情况下在浏览器中输入一个repoURL并得到“访问被拒绝”(正如预期的那样)。但我想100%确定避免类似于thisone的场合。.感谢您的任何建议! 最佳答案 VisualStudioTeamServices中的所有存储库都是私有(private)的...他们目前不提供公共(public)存储库。https://ww

.net - 如何使用 LibGit2Sharp 获取当前/事件分支?

所以使用LibGit2Sharphttps://github.com/libgit2/libgit2sharp你可以像这样穿过Twigusing(varrepo=newRepository(@"pathto.git")){foreach(varbranchinrepo.Branches){Debug.WriteLine(branch.Name);}}但是如何获取当前/事件分支? 最佳答案 Branch.IsCurrentRepositoryHead应该可以解决问题。我认为如果您不想遍历分支,Repository.Head也会做同样的

Git 子树 : Use only subrepository instead of whole repository

我有一个项目使用了一些第3方库。所以目录结构是这样的:MY_COOL_PROJECT3rdPartyLIB_1LIB_2SourceMY_PROJECT这些库位于单独的存储库中。所以,如果我想为第3方库使用git存储库,我可以这样做:gitsubtreeadd--prefix3rdParty/LIB_1--squashhttp://My3rdPartyLibs.com/lib1.gitmaster但是,在lib1.git存储库中,我只需要一个bin文件夹。它还包含文档、示例等文件夹。如何只将我的存储库“连接”到lib1/bin文件夹而不是整个存储库?这可能吗?

Git 显示错误 "does not appear to be a git repository fatal: The remote end hung up unexpectedly"

我刚刚在我的CentOSLinux服务器上安装了GIT并进行了配置。当我使用gitinit创建一个新的存储库时,它工作正常并且还提供了命令的输出。但是每当我尝试将远程存储库克隆到我的本地计算机文件夹时,它都会显示以下消息:fatal:'/public_html/repositories/git-test/.git'doesnotappeartobeagitrepositoryfatal:Theremoteendhungupunexpectedly有没有人遇到过这个问题,可能是什么原因? 最佳答案 您的路径可能不完整。也许您的完整路径

git - 致命 : The remote end hung up unexpectedly while pushing to Git repository

我创建了一个名为DirectorySocket的新存储库,并从名为DirectorySocket的项目目录中执行了以下操作:$gitinit$gitadd.$gitremoteaddorigingit@github.com:neilghosh/DirectorySocket.git$gitcommit-m"Initialversion"$gitpushoriginmaster我得到了以下错误:ERROR:Permissiontoneilghosh/DirectorySocket.gitdeniedtoneilghosh/googly.fatal:Theremoteendhungupun

Git : fatal: Could not read from remote repository. 请确保您具有正确的访问权限并且存储库存在

我收到这个错误-D:\Projects\wamp\www\REPO[master]>gitpulloriginmasterWarning:Permanentlyadded'github.com,192.30.252.128'(RSA)tothelistofknownhosts.ERROR:Repositorynotfound.fatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.gitremote-v的输出D:\Projects\w

Git "does not appear to be a git repository"ip 和端口而不是域?

我正在尝试将我的第一个Git存储库提交到我在debian-VM上设置的gitlab实例。一切都将通过本地网络发生。创建新仓库后,gitlab中显示以下命令。mkdirtestcdtestgitinittouchREADMEgitaddREADMEgitcommit-m'firstcommit'gitremoteaddorigingit@10.200.3.248:1337:Matt/test.gitgitpush-uoriginmaster输入gitpush-uoriginmaster后会发生这种情况:git@10.200.3.248'spassword:fatal:'1337:Matt

ruby-on-rails - 卡皮斯特 pull 诺 + Git : repository local to production server

我正在尝试为我的应用执行“部署:冷”。gitrepo是本地的我的部署服务器(即我只有一台服务器用于所有内容,而且我不要在github上托管我的代码)。这是成绩单(出于隐私考虑,将我的应用名称替换为“myapp”)*executing`deploy:cold'*executing`deploy:update'**transaction:start*executing`deploy:update_code'executinglocally:"gitls-remote/home/mrichman/git/myapp.gitmaster"fatal:'/home/mrichman/git/my

git - 防火练习 : Recreate Github (or any other central) repository from developers clones

假设您有一个带有中央主git存储库的场景,开发人员和CI引擎从中克隆。IE。非常接近传统的非分布式版本控制系统设置,具有中央集线器和许多节点。这可以是像Github(Gitlab/Savannah/Azure等)这样的云服务,或者带有git服务器或其他内部设置的Synology。现在假设服务器被盗或被闪电击中或任何其他会导致中央存储库及其所有集中备份消失的事情。您只剩下各种克隆,幸运的是,其中一个已完全更新,因此您创建了一个空白的git存储库替换服务器,用作future的中央存储库,然后开始处理克隆。完全更新的克隆知道所有带有“gitbranch-a”的“remotes/origin”

git - 如何 "resolve fatal: Not a git repository"?

我试图从项目中删除一个子模块尝试了rm-rf.git/modules/submodulePath之后我遇到了问题致命:不是git存储库 最佳答案 这两个文件包含子模块的绝对路径:{submodule}/.git.git/modules/{submodule}/config因此,如果您移动了存储库,这两个文件中的绝对路径无效,并导致“不是git存储库”错误。只需手动修复这些文件。更新:1.)从.gitmodules文件中删除相关部分。您可以使用以下命令:gitconfig-f.gitmodules--remove-section"su