随笔分类 - git使用
摘要:直奔主题,使用git连接到Github步骤如下:1. 安装gityum install git或者sudo get-apt install git git-core2. 全局配置git config --global user.name "furzoom"git config --g...
阅读全文
摘要:git设置只允许特定类型的文件# 忽略所有文件*# 不忽略目录!*/# 不忽略文件.gitignore和*.foo!.gitignore!*.foo
阅读全文
摘要:先查看远程分支git branch -r使用下面两条命令来删除远程分支git branch -r -d origin/branch-namegit push origin :branch-name
阅读全文
摘要:启用默认的颜色设置可以使用如下命令git config --global color.ui true如果不喜欢花花绿绿的颜色,可以将其关闭:git config --global color.ui false可以针对具体的内容进行设置如:color.branchcolor.diffc...
阅读全文
摘要:显示name的方法:git config user.namegit config --list或者查看~/.gitconfig文件。改名字:git config --global user.name "Furzoom"# orvi ~/.gitconfig如果不加--global就是...
阅读全文
摘要:查看、添加、提交、删除、找回,重置修改文件git help # 显示command的helpgit show # 显示某次提交的内容 git show $idgit co -- # 抛弃工作区修改git co . # 抛弃工作区修改git add # 将工作文件修改提交到本地暂...
阅读全文
摘要:Git core objectsCore objects in gitblob objecttree objectcommit objectGit low level commandsgit hash-objectgit cat-filegit update-indexgit wri...
阅读全文