我的存储库中有两个分支。
master
dev
我从 dev 分支机构结帐了。 (#git checkout -b origin/dev
)我在当地做了一些开发。我想将更改提交到 dev 分支。
我试过了。
#git add .
#git commit -m "aa"
# git push
但是致命的错误。 repository 'https://github.com/lobdev/eps-portal.git/' not found
尝试状态时
# git status
我得到了
On branch dev
Your branch is ahead of 'origin/dev' by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
我如何提交dev分支?
我试过了;
#git remote show origin
得到;
* remote origin
Fetch URL: https://github.com/lobdev/eps-portal.git
Push URL: https://github.com/lobdev/eps-portal.git
HEAD branch: master
Remote branches:
dev tracked
master tracked
Local branch configured for 'git pull':
dev merges with remote dev
Local ref configured for 'git push':
dev pushes to dev (fast-forwardable)
答案 0 :(得分:-1)
显示所有遥控器:
git remote show
检查遥控器:
git remote show origin
远程网址可能有误(有时会将其重命名为其他网址)。
删除它:
git remote remove origin
添加更新的网址:
git remote add origin something.git