ign*_*aur 9 git version-control
好的,希望这对你来说应该很容易.我是git,BitBucket的新手,也是版本控制的新手,我将会遗漏一些明显的东西给你.
所以这就是我所做的:我已经在我的机器上安装了git并设置了我的全局变量.在BitBucket上设置一个新的仓库.然后:
$ git clone https://[me]@bitbucket.org/[me]/[my_project].git
Run Code Online (Sandbox Code Playgroud)
完成.然后我在本地创建一个新文件(index.html).然后:
$ git add index.html
$ git commit -m "Initial commit."
[master (root-commit) 01d4120] Initial commit.
1 files changed, 164 insertions(+), 0 deletions(-)
create mode 100755 index.html
Run Code Online (Sandbox Code Playgroud)
所以成功添加.然后:
$ git push
Password:
Everything up-to-date
Run Code Online (Sandbox Code Playgroud)
致力于成功.
$ git clone https://[me]@bitbucket.org/[me]/[my_project].git
Run Code Online (Sandbox Code Playgroud)
我输入了我的密码aaaaa ... Everything up-to-date......它不推.我只是想从我当地的行李箱直接推到远程行李箱.
我很抱歉,如果这是非常明显的,但我对一切似乎都没有找到任何信息的新手,我只是在尝试"BitBucket 101"步骤.谢谢.
man*_*lds 16
你必须这样做:
git push origin master
Run Code Online (Sandbox Code Playgroud)
如果您有不同的遥控器,请更改原点.
如果你有不同的分支,改变主人.