草庐IT

Telegram-master

全部标签

git - 什么是 `git push origin master` ?帮助 git 的 refs、heads 和 remotes

我有一个关于gitpushoriginmaster做什么的问题:我知道origin是远程(又名GitHub)gitpushoriginmaster等同于gitpushoriginmaster_on_my_machine:master_on_github我不知道是否:master_on_my_machine等于/refs/heads/mastermaster_of_github等于/refs/remotes/origin/master如果相等,是否可以做gitpushoriginrefs/heads/master:refs/heads/origin/master?最后,我只想在以下情况下

git - 什么是 `git push origin master` ?帮助 git 的 refs、heads 和 remotes

我有一个关于gitpushoriginmaster做什么的问题:我知道origin是远程(又名GitHub)gitpushoriginmaster等同于gitpushoriginmaster_on_my_machine:master_on_github我不知道是否:master_on_my_machine等于/refs/heads/mastermaster_of_github等于/refs/remotes/origin/master如果相等,是否可以做gitpushoriginrefs/heads/master:refs/heads/origin/master?最后,我只想在以下情况下

git - 推送大型 github 存储库失败并显示 "unable to push to unqualified destination: master"

我有一个很大的git存储库(从SVN存储库创建),我想将它推送到github。鉴于它很大,我不能直接尝试推送它,因为它会因“打包太大”错误而失败。到目前为止一切都很好,我可以一次推送一个提交的repo协议(protocol)。但是当我尝试这样做时,发生的事情是:gitpushorigin86c310d8a680d6d0e052fa7db89adb25348f3e54:mastererror:unabletopushtounqualifieddestination:masterThedestinationrefspecneithermatchesanexistingrefontherem

git - 推送大型 github 存储库失败并显示 "unable to push to unqualified destination: master"

我有一个很大的git存储库(从SVN存储库创建),我想将它推送到github。鉴于它很大,我不能直接尝试推送它,因为它会因“打包太大”错误而失败。到目前为止一切都很好,我可以一次推送一个提交的repo协议(protocol)。但是当我尝试这样做时,发生的事情是:gitpushorigin86c310d8a680d6d0e052fa7db89adb25348f3e54:mastererror:unabletopushtounqualifieddestination:masterThedestinationrefspecneithermatchesanexistingrefontherem

git - 使用 git 将提交从 master 移动到分支

我正在尝试学习如何有效地使用Git,我想知道我应该如何(好的做法/坏的做法?)解决以下情况:假设我在master中有以下提交链:初始提交提交1提交2提交3然后我意识到在最后两次提交中所做的是完全错误的,我需要重新从Commit1开始。问题:我应该怎么做?我可以将Commit2和3移动到一个单独的分支以供将来引用(假设它们毕竟没那么糟糕)并继续在master上从Commit1开始工作吗? 最佳答案 gitbranchtmp#markthecurrentcommitwithatmpbranchgitreset--hardCommit1#

git - 使用 git 将提交从 master 移动到分支

我正在尝试学习如何有效地使用Git,我想知道我应该如何(好的做法/坏的做法?)解决以下情况:假设我在master中有以下提交链:初始提交提交1提交2提交3然后我意识到在最后两次提交中所做的是完全错误的,我需要重新从Commit1开始。问题:我应该怎么做?我可以将Commit2和3移动到一个单独的分支以供将来引用(假设它们毕竟没那么糟糕)并继续在master上从Commit1开始工作吗? 最佳答案 gitbranchtmp#markthecurrentcommitwithatmpbranchgitreset--hardCommit1#

git - 'git push heroku master' 仍在请求身份验证

我已经执行了:$herokulogin但是当我尝试推送时,仍然要求我进行身份验证:$gitpushherokumasterUsernamefor'https://git.heroku.com':Passwordfor'https://@git.heroku.com':然后我收到一条警告:不要使用Git使用用户名和密码进行身份验证。我再次运行herokulogin并成功通过身份验证,但我仍然遇到同样的失败。我检查过Remote:$gitremote-vherokuhttps://git@heroku.com/appname.git(fetch)herokuhttps://git@hero

git - 'git push heroku master' 仍在请求身份验证

我已经执行了:$herokulogin但是当我尝试推送时,仍然要求我进行身份验证:$gitpushherokumasterUsernamefor'https://git.heroku.com':Passwordfor'https://@git.heroku.com':然后我收到一条警告:不要使用Git使用用户名和密码进行身份验证。我再次运行herokulogin并成功通过身份验证,但我仍然遇到同样的失败。我检查过Remote:$gitremote-vherokuhttps://git@heroku.com/appname.git(fetch)herokuhttps://git@hero

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