Git相关
来源:互联网 发布:c语言计算三角函数 编辑:程序博客网 时间:2024/05/16 09:32
Git 常用命令
- Git的一些常用命令
git add <filename>git commit -m "代码提交信息" //你的改动已经提交到了 HEAD,但是还没到你的远端仓库git push origin master //可以把 master 换成你想要推送的任何分支git pullgit diff <source_branch> <target_branch>
Windows Git Bash中文乱码问题
- 向
/etc/gitconfig
的最后一行添加
[gui] encoding = utf-8 [i18n] commitencoding = GB2312 #log编码,window下默认gb2312,声明后发到服务器才不会乱码[svn] pathnameencoding = GB2312 #支持中文路径
- 向
/etc/git-completion.bash
的最后一行添加
alias ls='ls --show-control-chars --color=auto' #ls能够正常显示中文
- 向
/etc/inputrc
中的设置修改如下:
set output-meta on #bash中可以正常输入中文set convert-meta off
Gitbash的复制粘贴
点击Gitbash命令行界面 左上角的图标
,就会出现菜单,点击编译(E)
,即可看到复制粘贴选项
0 0
- Git 相关
- git 相关
- git 相关
- git相关
- git相关
- Git相关
- Git相关
- git相关
- Git 相关
- Git相关
- git 相关
- git相关
- git 相关
- git相关
- git相关
- Git 相关
- git 相关
- git 相关
- .NET学习之路C#(1)
- 网络应用层常见协议
- BZOJ1257【数论】
- 从博客园转到CSDN啦~
- Lua笔记:Button控件按钮创建及使用
- Git相关
- java进阶 ------ 基于URL高层次的网络编程
- Android.mk 文件添加jar资源
- 霍夫曼树压缩运用
- xampp多虚拟主机
- UE工作流程实践
- cocos2dx 图片资源加密
- git笔记
- Redis笔记part3(散列值)