随笔分类 -  git

摘要:git通过命令可以配置本地用户名和邮箱 git config user.name 用户名 git config user.email 邮箱 查看本地用户名和邮箱 git config user.name git config user.email 修改已经push到远程的用户名和邮箱 #!/bin/ 阅读全文
posted @ 2020-04-15 14:16 Se7end 阅读(1698) 评论(0) 推荐(0)
摘要:失误操作把错误的或者不完整的代码commit并且push到了远程。 可能会影响到远程上代码的正确性。 git提供了撤回远程代码的方法。 $ git log commit 8622aca4a579bbb65c7255ae797622b4c33187a7 (HEAD -> master, origin/ 阅读全文
posted @ 2020-04-15 14:05 Se7end 阅读(17069) 评论(0) 推荐(1)