草庐IT

ls-remote

全部标签

git - 'git remote add upstream' 帮助实现什么?

我正在阅读:https://wiki.diasporafoundation.org/Git_workflow#Rebase_your_development_branch_on_the_latest_upstream摘录如下:YourRepositoryUptoDateInordertogetthelatestupdatesfromthedevelopmenttrunkdoaone-timesetuptoestablishthemainGitHubrepoasaremotebyentering:$gitremoteaddupstreamgit://github.com/diaspora

git - 'git remote add upstream' 帮助实现什么?

我正在阅读:https://wiki.diasporafoundation.org/Git_workflow#Rebase_your_development_branch_on_the_latest_upstream摘录如下:YourRepositoryUptoDateInordertogetthelatestupdatesfromthedevelopmenttrunkdoaone-timesetuptoestablishthemainGitHubrepoasaremotebyentering:$gitremoteaddupstreamgit://github.com/diaspora

git - 有没有办法让 git 记住 WebDAV Remote 的密码?

我正在使用Git将更改推送到通过HTTP/WebDAV共享的存储库,并且Git会提示为访问HTTP远程的每个操作输入密码。有没有办法让Git缓存密码/让远程服务器不提示我?远程网络服务器应该是Apache,必要时可以重新配置。 最佳答案 方法是使用~/.netrc,如thisGitdocumentation的第3步中所述:Then,addthefollowingtoyour$HOME/.netrc(youcandowithout,butwillbeaskedtoinputyourpasswordalotoftimes):machin

git - 有没有办法让 git 记住 WebDAV Remote 的密码?

我正在使用Git将更改推送到通过HTTP/WebDAV共享的存储库,并且Git会提示为访问HTTP远程的每个操作输入密码。有没有办法让Git缓存密码/让远程服务器不提示我?远程网络服务器应该是Apache,必要时可以重新配置。 最佳答案 方法是使用~/.netrc,如thisGitdocumentation的第3步中所述:Then,addthefollowingtoyour$HOME/.netrc(youcandowithout,butwillbeaskedtoinputyourpasswordalotoftimes):machin

git - 如何检查对远程 Git 存储库 ("can I push?"的写入权限)

我正在构建一个(有些受限的)Git客户端。要设置存储库,请输入远程存储库的URL。我想检查用户是否对该存储库具有读+写访问权限。如果没有,我会显示一个身份验证对话框。我用gitls-remote检查'读取'访问权限.是否有类似的方法来检查“写入”访问权限,而无需先克隆存储库?(我知道我可以gitclone然后gitpush--dry-run) 最佳答案 如果git仓库在github中,打开仓库中的任意文件,然后单击“编辑”,github将显示如下内容:You’reeditingafileinaprojectyoudon’thavew

git - 如何检查对远程 Git 存储库 ("can I push?"的写入权限)

我正在构建一个(有些受限的)Git客户端。要设置存储库,请输入远程存储库的URL。我想检查用户是否对该存储库具有读+写访问权限。如果没有,我会显示一个身份验证对话框。我用gitls-remote检查'读取'访问权限.是否有类似的方法来检查“写入”访问权限,而无需先克隆存储库?(我知道我可以gitclone然后gitpush--dry-run) 最佳答案 如果git仓库在github中,打开仓库中的任意文件,然后单击“编辑”,github将显示如下内容:You’reeditingafileinaprojectyoudon’thavew

Git 错误 : Unable to append to . git/logs/refs/remotes/origin/master: 权限被拒绝

我遇到了一个似乎无法解决的奇怪问题。这是发生的事情:我在github存储库中有一些我不想要的日志文件。我发现这个脚本可以像这样从git历史记录中完全删除文件:#!/bin/bashset-oerrexit#Author:DavidUnderhill#Scripttopermanentlydeletefiles/foldersfromyourgitrepository.Touse#it,cdtoyourrepository'srootandthenrunthescriptwithalistofpaths#youwanttodelete,e.g.,git-delete-historypat

Git 错误 : Unable to append to . git/logs/refs/remotes/origin/master: 权限被拒绝

我遇到了一个似乎无法解决的奇怪问题。这是发生的事情:我在github存储库中有一些我不想要的日志文件。我发现这个脚本可以像这样从git历史记录中完全删除文件:#!/bin/bashset-oerrexit#Author:DavidUnderhill#Scripttopermanentlydeletefiles/foldersfromyourgitrepository.Touse#it,cdtoyourrepository'srootandthenrunthescriptwithalistofpaths#youwanttodelete,e.g.,git-delete-historypat

Git 推送 : "fatal ' origin' does not appear to be a git repository - fatal Could not read from remote repository."

我知道已经有人问过类似的问题。但是,我认为我的问题是由于我之前犯的一个错误,因此有所不同:让我解释一下。一切都如我所愿顺利进行:gitadd.我本地存储库中的所有文件。gitcommit-m"messagehere"将消息添加到我的提交中。gitpushoriginmaster将我的文件上传到GitHub。gitpushherokumaster将我的文件上传到Heroku。但是,在某些时候,我在本地创建了一个名为add-calendar-model的新分支,以防应用程序开发的后续步骤失败......这正是发生的事情。然而,尽管进行了多次尝试,我还是没有设法从master分支到我的本地存

Git 推送 : "fatal ' origin' does not appear to be a git repository - fatal Could not read from remote repository."

我知道已经有人问过类似的问题。但是,我认为我的问题是由于我之前犯的一个错误,因此有所不同:让我解释一下。一切都如我所愿顺利进行:gitadd.我本地存储库中的所有文件。gitcommit-m"messagehere"将消息添加到我的提交中。gitpushoriginmaster将我的文件上传到GitHub。gitpushherokumaster将我的文件上传到Heroku。但是,在某些时候,我在本地创建了一个名为add-calendar-model的新分支,以防应用程序开发的后续步骤失败......这正是发生的事情。然而,尽管进行了多次尝试,我还是没有设法从master分支到我的本地存