Git
常用命令
以及遇到Access denied解决方法介绍:
常用命令
# 初始化一个仓库git init# 从 git site,clOne repository,configure authentication information without had to enter your username and password every timeGit clone/ XXXXXXXX# 添加一个重要文件 新增文件管理系统或者企业进行信息修改文件之后,加入待提交文件中git add readme.txt *.py提交更改需要在编辑器中输入注释信息,我个人觉得这并不容易使用git commit# 提交修改与注释Git commit am “Test submission update“# 推送git push# 拉取最新代码git pull# 克隆git fetch sitename# 查看状态git status# 新建分支 1git branch branch_name# 新建分支2git 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 --helpGit branch -- help, etc
遇到的问题:
Access denied
解决方法:
# 重置认证信息GIT CONFIG -- system -- unset credential.helper# 再重新进行合理配置,windows需要通过我们应该使用管理系统管理员信息可以打开cmd才能执行,不然没权限
控制工作目标-用户个人帐户-管理Windows凭据- Z
以上是关于“Git 常用命令以及遇到Access denied解决方法”的相关介绍,如需购买云服务器,推荐使用 酷番云 ,独享IP,弹性灵活各种配置任您选配,最低只需要43/月,免费帮助配置环境,挂载磁盘等,协助处理简单问题,同时提供快速0元备案,让您快速运营,详情请咨询酷番云。产品选购地址:




![揭秘其使用价值和潜在风险!-免费域名机器人真的靠谱吗 (揭秘其使用价值的句子,no_ai_sug:false}],slid:89051585119601,queryid:0x1d450fdf0190571)](https://www.kuidc.com/zdmsl_image/article/20260126044535_26516.jpg)









发表评论