如何从命令行推送带有凭据的git分支代码
我在git分支中进行了更改。我想通过像如何从命令行推送带有凭据的git分支代码,git,github,Git,Github,我在git分支中进行了更改。我想通过像gitpush这样的单个命令将这些更改推送到GitHubhttps://username:password@myrepository.biz/file.git 当从命令行推送git分支的更改时,如何实现同样的效果 我试过这两种选择 git推送https://username:password@myrepository.biz/file.git源代码头:开发 git推源头:开发https://username:password@myrepository.bi
gitpush这样的单个命令将这些更改推送到GitHubhttps://username:password@myrepository.biz/file.git
当从命令行推送git分支的更改时,如何实现同样的效果
我试过这两种选择
git推送https://username:password@myrepository.biz/file.git源代码头:开发
git推源头:开发https://username:password@myrepository.biz/file.git
mangitpush
,您将看到gitpush
的语法如下:
git push [options...] [<repository> [<refspec>...]]
此外,它可能会说ssh://
,而不是https://
,您可能会在服务器上发布错误;这似乎是一个很好的问题,但不是这里的主题。(如果可以的话,我会建议你更简洁一点——Stack Exchange网站倾向于尽可能使用简洁的技术文字)。
git push https://username:password@myrepository.biz/file.git HEAD:development