git知识库

10002、gitlab上传代码报错fatal: unable to access ‘http://gitlab********‘: Could not resolve host: gitlab.******

解决办法:服务器地址:端口号

10001、命令行

git 基础命令_金箍一梦何来愁的博客-CSDN博客git 基础命令https://blog.csdn.net/yz18931904/article/details/125113164

-1、git没有权限的问题

git 没有权限的问题_金箍一梦何来愁的博客-CSDN博客

1、查看一个分支是从哪个分支拉出来了:

git reflog show 分支名

git reflog --date=local | grep 分支名

(154条消息) git常用的命令-----自己总结_yz18931904的博客-CSDN博客

(154条消息) git log的不同颜色的标签解读_yz18931904的博客-CSDN博客

4、idea的git操作规范

https://www.yuque.com/chengyaojinanqilababy/kb/rarqpe

7、idea  删除一次操作

(154条消息) idea revertcommit_yz18931904的博客-CSDN博客

8、cherry-pick

(154条消息) cherry-pick_yz18931904的博客-CSDN博客

9、创建一个新list  将不想提交的代码放到这个list里面

(154条消息) 创建一个list将不想提交的代码放进去_yz18931904的博客-CSDN博客

10、查看一个分支的创建的时间

git reflog show --date=iso | grep  master2

  结果:checkout: moving from master to master2

11、代码推送到gitee仓库

12、Git报错:Another git process seems to be running in this repository - willingtolove - 博客园 (cnblogs.com)

(215条消息) fatal: You are not currently on a branch. To push the history leading to the current (detached HEAD)_luyee2010的博客-CSDN博客

https://blog.csdn.net/yz18931904/article/details/124995909

https://blog.csdn.net/qq_34609889/article/details/88733153 https://blog.csdn.net/lyh1023812/article/details/122805455 

13、cherry-pick功能

idea中,git的cherry-pick怎么用?_全冉的博客-CSDN博客

14、放弃本地修改

git 撤销,放弃本地修改 - 刀客八号 - 博客园 (cnblogs.com)

15、git 添加一个超大的目录

(490条消息) git add出现 "fatal: in unpopulated submodule XXX" 错误_青山师的博客-CSDN博客

16、idea-git  不好用了

idea 中出现“Сannot Run Git Cannot identify version of git executable: no response”解决办法_小annot run git_妖四灵.Shuen的博客-CSDN博客

17、撤销某次提交

使用idea撤销git中间的提交_idea git取消提交-CSDN博客 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值