git使用技巧
L.I.L.Y
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
fatal: No configured push destination.(简单明了)
$ git push #输入此命令,遇到如下问题:fatal: No configured push destination.Either specify the URL from the command-line or configure a remote repository using git remote add <name> <url>and then push using the remote name git push <name&原创 2020-07-28 22:25:54 · 5165 阅读 · 4 评论 -
fatal: unable to auto-detect email address (got ‘tim@newton.(none)‘)
当用到:git commit -m "我的第一个代码“遇到问题:fatal: unable to auto-detect email address (got ‘tim@newton.(none)’)方法:在git的全局配置文件中添加username和useremail过程如下:按照提示,执行以下两条命令:git config --global user.email "you@example.com"//github上绑定的emailgit config --global user.name原创 2020-07-28 22:19:02 · 1229 阅读 · 0 评论 -
将本地代码上传到GitHub—简单明了
法一:1.在github上新建一个仓库(按照红色圈圈操作)2.进入本地你要上传的代码所在的文件夹,右键,选择git bash here,出现指令框,一次输入以下几条命令git init //在所在文件夹下创建一个.git文件夹git add . //"."代表当前目录下全部内容,如果想上传当前目录下的某一个,即:将"."换成"要上传的那个文件或文件夹的名字"git commit -m "first commit" //""内的内容可自行更改git remote原创 2020-05-17 14:32:14 · 286 阅读 · 0 评论
分享