将gitbash部署hexo到github:hexo deploy 报以下错误: Administrator@liu MINGW64 /Hexo $ hexo d INFO Deploying: git INFO Clearing .deploy_git folder... INFO Copying files from public folder... INFO Copying files from extend dirs... warning: LF will be replaced by…
本地git提交代码,没有发现有什么啥情况. 本地代码提交不上去…
.    commit之后,用git status,打印信息为: # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean) 说明没有文件需要commit,但是本地仓库 有一个commit ahead原来的master,就是本地仓库有一个提交,比远程仓库要先进一个commit. You get that message…
Merge branch 'master' of xxx Please enter a commit message to explain why this merge is necessary,especially if it merges an updated upstream into a topic branch.Lines starting with '#' will be ignored, and an empty message aborts the commit. 只需  shi…
在使用 Git 的进行代码版本控制的时候,往往会发现在 log 中出现 "Merge branch 'master' of ..." 这句话,如下图所示.日志中记录的一般为开发过程中对代码的改动信息,如果出现过多例如上述描述的信息会造成日志的污染. 阅读了一些外文的博客,下面就来一探究竟. 产生原因分析 当多人合作开发一个项目时,本地仓库落后于远程仓库是一个非常正常的事情,可参考下图. A-B-C(master) \ D(origin/master) 具体情境如下: 我当前拉取的远端版…
情景再现 远程新建仓库,然后本地 git bash执行以下代码 git init git add . git commit -m 'xxx' git remote add origin https://username@xxx.com/xxx.git git push 在执行git push的时候出现" The current branch master has no upstream branch."问题的原因是没有将本地的分支与远程仓库的分支进行关联,如图  对应的中文意思: fa…
1.在本地工程目录找到config文件(我的是在E:\rocket\rocket\.git): 2.修改config文件内容为: [core] repositoryformatversion = filemode = false logallrefupdates = true [branch "master"] remote = origin merge = refs/heads/master [remote "origin"] url = https://gith…
网上多半都是命令行下的解决方案,我用的是EGit,所以要在eclipse里(我的版本是kepler)把下面这句话添加到配置文件中. Window->Preference->Team->Git->Configuration->Repository Settings->选择你的repository,然后点open [branch "master"] remote = origin merge = refs/heads/master…
1.在本地工程目录找到config文件(我的是在D:\git\demo\.git):2.修改config文件内容为: [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly [remote "origin"] url = https://gith…
网上多半都是命令行下的解决方案,我用的是EGit,所以要在eclipse里(我的版本是kepler)把下面这句话添加到配置文件中. Window->Preference->Team->Git->Configuration->Repository Settings->选择你的repository,然后点open [branch "master"]  remote = origin  merge = refs/heads/master 第二种 1.在本地…