我尝试下面的命令和失败:混帐中心库创建失败
> cd SecurityAlert/
> sudo apt-get install git
> git init
> git add .
> git config --global user.email "[email protected]"
> git config --global user.name "user"
> git commit -m "First commit"
> git remote add origin https_link_github.com/user/SecurityAlert
> git push origin master
To https_link_github.com/user/SecurityAlert
! [rejected] master -> master (non-fast-forward)error: failed to push some refs to 'https_link_github.com/sandeepmhptr/SecurityAlert' hint: Updates were
rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
git pull
There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details git pull
If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=origin/ master
> git remote add -v
> git remote -v
远程URL是git remote add origin https://github.com/sandeepmhptr/SecurityAlert,我在这里写过git remote add origin https_link_github.com/sandeepmhptr/SecurityAlert,因为这个站点有些问题,它不允许超过2个网址 – chinmay
嗨,我再次尝试了所有这些步骤,并且它成功了 – chinmay
好吧,看起来好像遥控器已经初始化了一点。我添加了一些更多的信息来澄清答案。如果这确实有帮助,或者回答了您的问题,我将非常感谢复选标记或投票。 – LightCC