
git
如雨随行2020
哈撒给
展开
-
【git】实用别名
$ git config --global alias.br branch$ git config --global alias.cm commit$ git config --global alias.st status$ git config --global alias.lg=log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an&g原创 2021-06-19 00:22:43 · 86 阅读 · 0 评论 -
【git】常用命令
文章目录克隆项目设置用户名查看配置查看所有分支切换分支拉取提交查看工作区状态添加文件提交推出图形化查看子模块查看远程url克隆项目$ git clone "url"设置用户名$ git config --global user.name "hqmin"$ git config --global user.email "hqmin@qq.com"查看配置$ git config --list查看所有分支$ git branch -a //不加-a显示的本地分支切换分支$ git原创 2021-06-19 00:19:05 · 101 阅读 · 0 评论 -
【git】gitk中文乱码
使用gitk命令打开gitk工具,文件中含有乱码,一般是由于编码问题。使用如下命令解决git config --global gui.encoding utf-8原创 2021-06-18 23:10:32 · 550 阅读 · 1 评论 -
【git】小乌龟和git冲突
1.安装好小乌龟git后,用小乌龟的pull 从github上pull或者push项目,遇到错误:disconnected no supported authentication methods available(server sent: publickey)或者是 git did not exit cleanly (exit code 1)亦或者是 git did not exit cleanly (exit code 128)多半是因为git和小乌龟有冲突,解决方法:右键–小乌龟—设置–网络原创 2021-05-29 23:50:52 · 1837 阅读 · 0 评论 -
【git】删除分支
查看项目所有分支git branch -a删除本地分支git branch -d 分支名删除远程分支git push origin --delete 分支名原创 2021-05-28 00:27:07 · 103 阅读 · 0 评论