随笔分类 - git
摘要:记录一下,折腾了一早上~ mac系统:macOS Sonoma 14.0 openssh:9.3 问题描述: 拉代码: git clone "ssh://XXXX/" 报错了: Cloning into 'autotest'... fanjiexiong@10.0.10.208: Permissio
阅读全文
摘要:git log # 查看提交的记录 git reset --hard { commit} #上面log中的commit id号 此时本地文件已经回滚到刚刚commit 之后的状态,但是服务器仍然没有改变,需要继续远程回滚:git push -f
阅读全文
摘要:1、首先在test分支上进行 git add . git commit -m "test" git push 2、切换到master上 git checkout master git merge test git push
阅读全文
摘要:git log # 查看commit提交记录 拷贝commit_id git reset --hard commit_id git push -f -u origin master
阅读全文