随笔分类 -  git

摘要:记录一下,折腾了一早上~ mac系统:macOS Sonoma 14.0 openssh:9.3 问题描述: 拉代码: git clone "ssh://XXXX/" 报错了: Cloning into 'autotest'... fanjiexiong@10.0.10.208: Permissio 阅读全文
posted @ 2023-10-30 16:42 Tarzen 阅读(364) 评论(0) 推荐(0) 编辑
摘要:git log # 查看提交的记录 git reset --hard { commit} #上面log中的commit id号 此时本地文件已经回滚到刚刚commit 之后的状态,但是服务器仍然没有改变,需要继续远程回滚:git push -f 阅读全文
posted @ 2020-07-27 15:24 Tarzen 阅读(501) 评论(0) 推荐(0) 编辑
摘要:1、首先在test分支上进行 git add . git commit -m "test" git push 2、切换到master上 git checkout master git merge test git push 阅读全文
posted @ 2020-06-02 14:14 Tarzen 阅读(8196) 评论(0) 推荐(0) 编辑
摘要:git log # 查看commit提交记录 拷贝commit_id git reset --hard commit_id git push -f -u origin master 阅读全文
posted @ 2019-11-11 10:14 Tarzen 阅读(1673) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示