Git 常用命令以及遇到Access denied解决方法
Git 常用命令以及遇到Access denied解决方法介绍:
常用命令
#初始化一个仓库git init
#从 git site,clone repository,configure authentication information without had to enter your usernameand password every time
Git clone http://github.With / XXXXXXXX#添加一个重要文件新增文件管理系统或者企业进行信息修改文件之后,加入待提交文件中
git add readme.txt *.py
提交更改需要在编辑器中输入注释信息,我个人觉得这并不容易使用
git commit
#提交修改与注释Git commit am “Test submission update“#推送
git push
#拉取最新代码
git pull
#克隆git fetch sitename#查看状态
git status
#新建分支1
git branch branch_name
#新建分支2
git checkout -b branch_name
#获取本地分支列表
git branch
#切换分支
git checkout branch_name
#合并分支
git merge branch_name
#删除分支
git branch -d branche_name
#查看提交日志
git log
#生成补丁文件
git format-patch master
#添加补丁文件GitApplication0001-The name of the patch file.patch
#打标签Git tag - a take-m tag description#查看标签
git tag
#删除标签
git tag -d tagname
#万能
git --help
Git branch -- help, etc
遇到的问题:
Access denied
#重置认证信息
GIT CONFIG -- system -- unset credential.helper
#再重新进行合理配置,windows需要通过我们应该使用管理系统管理员信息可以打开cmd才能执行,不然没权限
Windows:
控制工作目标-用户个人帐户-管理Windows凭据- Z
以上是关于“Git 常用命令以及遇到Access denied解决方法”的相关介绍,如需购买云服务器,推荐使用亿华云,独享IP,弹性灵活各种配置任您选配,最低只需要43/月,免费帮助配置环境,挂载磁盘等,协助处理简单问题,同时提供快速0元备案,让您快速运营,详情请咨询亿华云。产品选购地址:
https://www.kufanyun.com/server/buy.html