草庐IT

ls-remote

全部标签

eclipse egit : How to synchronize with remote repo?

我是GIT的新手,我曾经提交到我的本地副本,然后“推送”到远程存储库。最近我在另一台计算机上修改了我的代码,并希望将更改与我的家用计算机同步。但是在gitsynchronizeView中,在我将文件标记为“标记为已merge”(在使用本地更改解决更改之后)之后,我如何提交回远程存储库?(就像在SVN中一样?)(即:即使我点击“标记为merge”,“红色双阵列图标”也保持不变)Clickforlargersize 最佳答案 我不太使用同步,因为我使用以下工作流程:-fetch-merge*resolvedmergesaresentto

GitHub 错误 - "ssh: connect to host github.com port 22: Operation timed out fatal: Could not read from remote repository."

我想将一个存储库从我的计算机推送到GitHub。我设置远程原点gitremoteaddorigingit@github.com:alicht/tweetanuber.git然后在我尝试推送到GitHub之后gitpush-uoriginmaster我遇到了这个错误:ssh:connecttohostgithub.comport22:Operationtimedoutfatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.如何解决此问题

GitHub 错误 - "ssh: connect to host github.com port 22: Operation timed out fatal: Could not read from remote repository."

我想将一个存储库从我的计算机推送到GitHub。我设置远程原点gitremoteaddorigingit@github.com:alicht/tweetanuber.git然后在我尝试推送到GitHub之后gitpush-uoriginmaster我遇到了这个错误:ssh:connecttohostgithub.comport22:Operationtimedoutfatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.如何解决此问题

git - 为什么 git ls-files --ignore 需要排除模式?

通过命令gitls-files--ignored使用排除模式的要求背后的逻辑是什么?来自githelpls-files:-i,--ignoredShowonlyignoredfilesintheoutput.Whenshowingfilesintheindex,printonlythosematchedbyanexcludepattern.Whenshowing"other"files,showonlythosematchedbyanexcludepattern. 最佳答案 首先让我确保您没有将--ignored与--others混

git - 为什么 git ls-files --ignore 需要排除模式?

通过命令gitls-files--ignored使用排除模式的要求背后的逻辑是什么?来自githelpls-files:-i,--ignoredShowonlyignoredfilesintheoutput.Whenshowingfilesintheindex,printonlythosematchedbyanexcludepattern.Whenshowing"other"files,showonlythosematchedbyanexcludepattern. 最佳答案 首先让我确保您没有将--ignored与--others混

java - JGit 设置 git : URI instead of https: for remote on CircleCI

我有以下代码(请参阅评论以了解发生的情况)://ClonerepositoryfromGitHubintoalocaldirectory.Gitgit=Git.cloneRepository().setBranch("gh-pages").setURI("https://github.com/RAnders00/KayonDoc.git").setDirectory(newFile("/home/ubuntu/KayonDoc")).call();//PrintoutremotesinconfigfromJGitConfigconfig=git.getRepository().getC

java - JGit 设置 git : URI instead of https: for remote on CircleCI

我有以下代码(请参阅评论以了解发生的情况)://ClonerepositoryfromGitHubintoalocaldirectory.Gitgit=Git.cloneRepository().setBranch("gh-pages").setURI("https://github.com/RAnders00/KayonDoc.git").setDirectory(newFile("/home/ubuntu/KayonDoc")).call();//PrintoutremotesinconfigfromJGitConfigconfig=git.getRepository().getC

混帐 : how to specify a default remote push-to branch?

假设我有一个名为“abc”的跟踪分支,它跟踪origin/master。当我在'abc'上执行gitpush时,它会将'abc'推送到'abc'.如何仅使用“gitpush”为其指定远程推送分支? 最佳答案 gitbranch--set-upstream-toabcorigin/master应该可以指定远程分支。注意-toaddedto--set-upstreamsincegit1.8.0.自Git1.7.0:"gitbranch--set-upstream"canbeusedtoupdatethe(surprise!)upstre

混帐 : how to specify a default remote push-to branch?

假设我有一个名为“abc”的跟踪分支,它跟踪origin/master。当我在'abc'上执行gitpush时,它会将'abc'推送到'abc'.如何仅使用“gitpush”为其指定远程推送分支? 最佳答案 gitbranch--set-upstream-toabcorigin/master应该可以指定远程分支。注意-toaddedto--set-upstreamsincegit1.8.0.自Git1.7.0:"gitbranch--set-upstream"canbeusedtoupdatethe(surprise!)upstre

gitolite:新存储库的默认 Remote

我已经安装了gitolite(目前在本地进行实验),它似乎可以正常工作,除了在gitclone之后默认情况下新存储库不会跟踪远程。如果我没记错的话,当我从github.com克隆一个存储库时,它已经能够推送和pull了。这是我尝试过的:$gitclonegit@localhost:sandboxCloningintosandbox...warning:Youappeartohaveclonedanemptyrepository.$echo"A">README$gitaddREADME$gitcommitREADME-m'test'$gitpushNorefsincommonandnon