![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
Yew1168
这个作者很懒,什么都没留下…
展开
-
Git Hooks and Git Log
Git - Git Hooks (git-scm.com)Git - git-log Documentation (git-scm.com)Windows(不认#!?)/MacOS (zsh)似乎不需要”#!/usr/bin/env bash“exec git log --pretty=oneline -1 > commitversion.txt显示最近提交commit id 和信息至 txt文件中;shell附加文本>>覆盖文本>your_com原创 2021-11-29 23:56:14 · 84 阅读 · 0 评论 -
git仓库瘦身
【参考】初次使用 git 的“核弹级选项”:filter-branch 从仓库中删除文件 - 至尊王者 - 博客园 (cnblogs.com)Git项目过大清理(针对大文件) - Geoffrey_one - 博客园 (cnblogs.com)GitLab 瘦身方法 | 贾攀家 (jiapan.me)BFG Repo-Cleaner by rtyleygit filter-branch (Administration) - Git 中文开发手册 - 开发者手册 - 云+社区 - 腾讯云原创 2021-10-13 22:35:13 · 258 阅读 · 0 评论 -
指定用户git clone Github仓库
git使用用户名密码clone的方式: 1 git clone http://username:password@remote 例如:我的用户名是xyz123@qq.com,密码是qwert12345,git地址为https://github.com/alibaba/graph-learn.git 1 git clone http://xyz123@qq.com:qwert12345@github.com/alibaba/grap.原创 2021-08-18 21:01:08 · 1306 阅读 · 0 评论 -
“git pull”如何强制覆盖本地文件?
1.暂存或discard 后,git pullHow do I force git pull to overwrite local files? | Learn Version Control with Git (git-tower.com)a)$ git stash --include-untrackedb)$ git reset --hard$ git clean -fd$ git pull2.拉取,然后覆盖本地1$ git fetch --all2a$ git .原创 2021-07-26 11:31:28 · 6353 阅读 · 0 评论 -
Git submodule !Unable to checkout !应对办法
从github克隆使用了git子模块的仓库,因网络问题导致子仓库下载出错,命令行里会提示如:Unable to checkout '726d14d02c95bb21ec9e43807751b491d295dd3c' in submodule path 'third_party/ktx'解决办法:1.进入子模块目录,重置git reset --hard2.检出确认gi...原创 2020-03-02 01:42:35 · 7528 阅读 · 2 评论 -
Debian 安装git cmake
参考1.https://cloud.tencent.com/developer/article/13614412.https://git-scm.com/book/zh/v1/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-GitDebian可以直接apt-get install git安装,但我这里显示出来要安装奇奇怪怪的东西,也不知道版本,所以选择源码安...转载 2019-06-11 00:11:44 · 2866 阅读 · 0 评论 -
git commit -am
一、通常我们修改一个文件并且将文件提交到本地的分支并且推送到远程服务器的操作如下:git add .git commit -m "some str"git push二、我们也可以将上面的三大步简化一下:git commit -am "some str"git push三、针对第一步中的git add .命令的作用就是将本地修改过的文件且已经追踪的文件添加到本地的暂存区,然后使...转载 2019-03-16 00:23:11 · 4005 阅读 · 0 评论 -
TortoiseGit - 处理冲突
https://www.cnblogs.com/McKean/p/6083489.html冲突:远程的master已经被其他人更新到 2repo add 12,但是自己当前的工作区在未pull到最新前,增加了1repo add 12的改动。 右击最新的节点,选择Merge to "master" ... 点击OK后,会弹出失败的信息。提示需要先commit本地...转载 2019-02-20 12:09:38 · 30947 阅读 · 1 评论 -
Your branch and 'origin/master' have diverged, and have 1 and 1 different commits each, respectively
本地工程,上传成github仓库:1,本地工程文件夹下,git init初始化git$ git initInitialized empty Git repository in D:/AI_codes/pyvirtualenv/ScrapyPiano/eop/.git/2. 添加文件,这里全部提交$ git add .warning: LF will be replaced...原创 2019-01-20 23:07:38 · 4267 阅读 · 0 评论 -
Git删除远程分支;3dsmax关联max文件
1.删除远程分支https://git-scm.com/book/zh/v1/Git-%E5%88%86%E6%94%AF-%E8%BF%9C%E7%A8%8B%E5%88%86%E6%94%AF#%E5%88%A0%E9%99%A4%E8%BF%9C%E7%A8%8B%E5%88%86%E6%94%AF如果不再需要某个远程分支了,比如搞定了某个特性并把它合并进了远程的 master 分支...原创 2018-12-24 10:41:56 · 144 阅读 · 0 评论 -
git vim 编辑器基本操作
git vim 编辑器基本操作用 git 命令行提交文件时,默认使用 vim 编辑器,基本操作:按 a, i 或 o 进入编辑模式 按 ESC 进入操作模式 在操作模式下,:wq 为写入退出,:q! 不保存退出 ...转载 2018-11-13 16:04:06 · 728 阅读 · 0 评论 -
Git SSH
0. Connecting to GitHub with SSHhttps://help.github.com/articles/connecting-to-github-with-ssh/1.Check that you are connecting to the correct server (SSH)https://help.github.com/articles/error-p...转载 2018-11-05 21:55:31 · 164 阅读 · 0 评论 -
Git Merge冲突解决
git merge 合并冲突,可以使用以下命令选中分支文件$ git checkout --ours file_name 保留自己的文件$ git checkout --theirs file_name 使用服务端文件原创 2018-11-07 09:44:51 · 1514 阅读 · 0 评论