Git 常用命令以及遇到Access denied解决方法

Git 常用命令以及遇到Access denied解决方法介绍:

Git 常用命令以及遇到Access denied解决方法

常用命令

# 初始化一个仓库
git init
# 从 git site,clone repository,configure authentication information without had to enter your username and 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
# 添加补丁文件
Git Application 0001 - 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

图片来源于互联网,如侵权请联系管理员。作者:路飞,如若转载,请注明出处:https://www.kufanyun.com/ask/1353.html

(0)
路飞路飞
上一篇 2021年12月24日 下午3:32
下一篇 2021年12月27日 下午4:08

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注