git使用

作者: 七月泽灵 | 来源:发表于2018-08-27 17:41 被阅读0次
查看本地分支文件信息,确保更新时不产生冲突
[root@master BullSpider]$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
将当前工作目录中更改或者新增的文件加入到的索引中,加入到Git的索引中就表示记入了版本历史中,这也是提交之前所需要执行的一步
[root@master BullSpider]$ git add .
提交当前工作目录的修改内容
[root@master BullSpider]$ git commit -m "注释内容"
上传代码到远程服务器
[root@master BullSpider]$ git push origin master 
查看修改日志
[root@master BullSpider]$ git log 
查看服务端代码分支
[root@master BullSpider]$ git branch 

Git传代码错误fatal:Authentication failed for'https://git……解决方法

原因:主机IP改变了导致认证无效

[root@master BullSpider]$ git push origin master
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://172.16.88.120/Big-Data/BullKingSpider.git/'

解决办法:

[root@master BullSpider]$ git config --system --unset credential.helper

相关文章

  • Git常规使用

    Git怎么使用?使用 git commit 进行提交操作时,Git都做了什么? Git怎么使用? 下载、安装Git...

  • AD 使用 Git 的注意事项

    使用 Git 管理项目 Altium Designer 支持使用 Git/SVN 用以版本控制。如果使用 Git,...

  • git

    使用git add . 代替 git add *使用git add之后,怎样恢复?

  • GIT和Github

    #Git的初识 ##Git 的使用 Git 使用初尝试 新建项目来操作 克隆已有项目来操作 Git 的使用 by ...

  • git代理配置

    git http 使用 http proxy git http 使用 https proxy git http 使...

  • Git命令使用

    Git命令使用 前言在使用Git命令之前都使用可视化工具SourceTree操作git,现在需要Git Andro...

  • 前端学习路线(2)——Git使用、DIV+CSS布局

    Git使用、DIV+CSS布局 1. Git使用 链接:git下载链接:git for windows(下载速度可...

  • vscode操作git总让输入用户名密码

    clone使用git地址,不要使用https地址修改.git/config文件中的url = git@git.pl...

  • git 操作以及submodule模式详解,附加jenkins对

    git常用命令 注意:请确保已经安装里git客户端 git使用帮助 git --help //git使用帮助,可...

  • git

    *** git checkout 也可以直接 reset ***使用Git进行项目存储使用git pull时,项目...

网友评论

      本文标题:git使用

      本文链接:https://www.haomeiwen.com/subject/castwftx.html