git操作merge

https://blog.csdn.net/weixin_41712499/article/details/107694173

 

https://git-scm.com/book/zh/v2/Git-%E5%88%86%E6%94%AF-%E5%88%86%E6%94%AF%E7%AE%80%E4%BB%8B

 

三.git技巧

1.查看当前在哪个分支的命令:

git branch -vv

git config --lis

2.报错解决

fatal: unable to access 'https://github.com/openscanner/fwebserver.git/': Failed to connect to github.com port 443 after 21165 ms: Timed out

执行如下命令:

git config --global http.sslVerify "false"

四、场景 *.把本地的修改先临时存储  *.把本地代码恢复到某一个commit

git stash

git reset --hard 8b4be33

git log 查看恢复日志

在旧代码上修改之后

git pull 拉回最新的代码

git stash pop 恢复临时存储的修改

 

 

 

posted @ 2022-12-20 14:31  zjb480  阅读(28)  评论(0编辑  收藏  举报