将现有代码推送到现有存储库:Bitbucket
Push to an existing code to an existing repository: Bitcucket
我有一个私人存储库(假设:出租)
我推了一些代码给它。现在我想将另一个项目推送到该存储库。很明显,我想用新代码替换以前的代码。
用命令行会是什么程序?
git remote show origin
* remote origin
Fetch URL: https://nafeeur10@bitbucket.org/xxxxx/rental.git
Remote branch:
master new (next fetch will store in remotes/origin)
Local ref configured for 'git push':
master pushes to master (local out of date)
这是现在的情况。
我正在尝试使用这些命令:
1. git init
2. git commit -m "New Commit"
给我这个错误:
On branch master
Your branch is up to date with 'github/master'.
nothing to commit, working tree clean
尝试:git push --set-upstream origin master
推送到名为 origin
的远程存储库。
我有一个私人存储库(假设:出租)
我推了一些代码给它。现在我想将另一个项目推送到该存储库。很明显,我想用新代码替换以前的代码。
用命令行会是什么程序?
git remote show origin
* remote origin
Fetch URL: https://nafeeur10@bitbucket.org/xxxxx/rental.git
Remote branch:
master new (next fetch will store in remotes/origin)
Local ref configured for 'git push':
master pushes to master (local out of date)
这是现在的情况。
我正在尝试使用这些命令:
1. git init
2. git commit -m "New Commit"
给我这个错误:
On branch master
Your branch is up to date with 'github/master'.
nothing to commit, working tree clean
尝试:git push --set-upstream origin master
推送到名为 origin
的远程存储库。