
git
qq_27278679
前端菜鸟
展开
-
如何用git将项目代码上传到github
注册账户以及创建仓库 要想使用github第一步当然是注册github账号了。之后就可以创建仓库了(免费用户只能建公共仓库),Create a New Repository,填好名称后Create,之后会出现一些仓库的配置信息,这也是一个Git的简单教程。步骤如下: 打开https://github.com 直接在首页上注册 点按钮注册成功之后,在页转载 2017-04-27 10:24:33 · 257 阅读 · 0 评论 -
git - error: failed to push some refs to 'https://github.com/.......git'' 解决办法
在使用git的时候, 我用git commit --amend 命令修改了上一个提交的一些内容, 而上一个提交的内容已经被我用push推到远程服务器了, 现在我用git push -u origin master 推送 amend之后的提交, 推送失败了, 并给出了错误提示如下: To https://github.com/Tate-zwt/WTMicroblog.git转载 2017-04-27 11:10:19 · 1976 阅读 · 1 评论 -
使用git将项目上传到github(最简单方法)
1,首先右键你的项目,如果你之前安装git成功的话,右键会出现两个新选项,分别为Git Gui Here,Git Bash Here,这里我们选择Git Bash Here,进入如下界面,Test_Bluetooth即为我的项目名。 2.接下来输入如下代码(关键步骤),把github上面的仓库克隆到本地 git clone https://github.com/CKTim/转载 2017-04-27 11:37:21 · 294 阅读 · 0 评论 -
git遇到的问题之“Please make sure you have the correct access rights and the repository exists.”
对于Git的提交一直很小心翼翼,感觉一不小心就会踩到莫名的坑。 某天commit 就遇到了On branch master nothing to commit (working directory clean) 一查意思。你的分支很干净? 干净?excuse me? 然后git push origin master一下,漫长等待了弹转载 2017-05-22 14:19:16 · 360 阅读 · 0 评论 -
Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法
参考资料: http://sheshui.me/articles/git-quickly-tutorial-20120517 http://stackoverflow.com/questions/9282632/git-index-lock-file-exists-when-i-try-to-commit-but-cannot-delete-the-file 我的说明: 我转载 2017-06-26 17:51:27 · 576 阅读 · 0 评论