
Git
Git使用
微电子学与固体电子学-俞驰
如切如磋,如琢如磨,臻于至善。
展开
-
硅云购买域名+绑定github pages
添加映射,含义是:访问自己购买的域名时,会等同于appleyuchi.github.io一样对待。上面的DNS域名,其实是腾讯的DNSPOD会提示你的。会跳转到appleyuchi.github.io。原创 2023-06-15 17:49:10 · 289 阅读 · 0 评论 -
ubuntu23.04安装gitbook
在文件 SUMMARY.md中编写。初始化gitbook 仓库。原创 2023-04-18 23:32:24 · 807 阅读 · 1 评论 -
windows下面安装git
xxxxxxxxxxx原创 2022-08-30 18:38:03 · 111 阅读 · 0 评论 -
window下github上传markdown文件中文乱码
window下一般默认编码方式是gb2312,github上是utf-8,因此当上传带中文的markdown文件时,可能出现乱码。可以使用记事本打开markdown格式文件,另存为,就会出现可以选择编码方式的对话框,选择utf-8,即可。。...原创 2022-04-27 14:05:06 · 1499 阅读 · 0 评论 -
github上面markdown插入图片的语法
原创 2022-04-26 20:51:58 · 712 阅读 · 0 评论 -
win7安装git客户端和简单配置
①不要自己下载客户端,直接360软件管家安装git② git config --global user.email "appleyuchi@163.com" ③C:\Users\Administrator\.gitconfig因为windows不允许.gitconfig这种没有文件名的命名,所以需要用git命令行来操作在上述文件中加入下面这几行[gui]encoding = utf-8[i18n]commitencoding = utf-8[s原创 2022-04-12 17:01:42 · 468 阅读 · 0 评论 -
git tag和branch的区别
命令 區別 git tag 發佈的可下載的軟件包 git branch 所以兩者之間沒有必然聯繫.原创 2021-02-02 23:34:16 · 469 阅读 · 0 评论 -
gitee传入公钥以后每次push依然需要输入密码(本流程适用于win10)
加入公钥的过程是这样的:(Python3.6) appleyuchi@Desktop:~$ cd ~/.ssh(Python3.6) appleyuchi@Desktop:.ssh$ lsauthorized_keys id_rsa id_rsa.pub known_hostsid_rsa.pub 里面的内容拷贝到然后发现每次push和clone都特么需要账户和密码...原创 2020-04-29 22:20:58 · 1575 阅读 · 0 评论 -
Freenom.com的域名+github pages+netlify的CDN加速
因为国内的CDN加速需要备案但是Freenom.com的域名工信部不支持,无法备案->无法CDN加速.怎么办呢?花钱买域名吗?想让我花钱是绝对不可能的.我们使用Netlify,界面虽然是英文的,但是非常友好 ,哪怕你不看文字,凭感觉操作都行.让我们放弃DNSpod,去freenom.com中填入:dns1.p03.nsone.net dns2.p03.ns...原创 2020-03-31 18:54:25 · 1889 阅读 · 0 评论 -
github pages绑定freenom.com的域名
(Python3.6) appleyuchi@ubuntu19:~$ ping gaussnoise.github.ioPING gaussnoise.github.io (185.199.108.153) 56(84) bytes of data.64 bytes from 185.199.108.153 (185.199.108.153): icmp_seq=1 ttl=48 time=1...原创 2020-03-31 12:36:21 · 2324 阅读 · 0 评论 -
coding pages绑定freenom.com域名
$ ping 8qjxpp.coding-pages.comPING appleyuchi.github.io (124.156.193.111) 56(84) bytes of data.64 bytes from 185.199.111.153 (124.156.193.111): icmp_seq=1 ttl=48 time=253 ms64 bytes from 185.199.11...原创 2020-03-30 21:05:44 · 1016 阅读 · 0 评论 -
git push卡住以及等待很久之后出现 GnuTLS recv error (-54)与 GnuTLS recv error (-110)两种报错
git push --progressUsername for 'https://gitee.com': appleyuchi@163.comPassword for 'https://appleyuchi@163.com@gitee.com':Enumerating objects: 8699, done.Counting objects: 100% (8699/8699), d...原创 2020-03-24 23:26:51 · 6540 阅读 · 1 评论 -
gitee中同步github的repository提示:"账户或密码错误"
gitee在同步来自github的repository的时候,会提示"账户或密码错误"这个意思是:这个是github的密码,而不是gitee的密码。总结就是:你需要gitee的账号和密码来登录gitee.在gitee平台上同步github上面的其他人的repository之前,需要你输入一个github的账户和密码(你自己的随便啥账户密码就行),否则就无法同步...原创 2020-02-27 14:12:55 · 1681 阅读 · 0 评论 -
单机上多git平台多账户配置
#--------------------------------------代码托管平台注册的邮箱------------------------------------------------------代码托管平台:github.com/appleyuchiappleyuchi@163.comgitee.com/appleyuchiappleyuchi@163.comyu...原创 2020-02-09 17:26:28 · 332 阅读 · 0 评论 -
fatal: unable to access 'xxxxxxxxxxxxx':The requested URL returned error: 403
完整报错如下remote: Permission to appleyuchi/Front_Design.git denied to SomeNews.fatal: unable to access 'https://github.com/appleyuchi/Front_Design/': The requested URL returned error: 403解决方案如下:...转载 2019-12-28 17:31:19 · 3220 阅读 · 0 评论 -
git lfs出现This repository is over its data quota
报错如下:batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.碰到这个问题后,我首先清理了lfs的repository,但是发现依然有这个问题。点击账...原创 2019-10-27 20:55:04 · 21034 阅读 · 24 评论 -
kaggle notebook中免密码进行push
下面的都是都是kaggle notebook中运行的。运行下面的代码:!rm -r /kaggle/working/RSNA_MODEL!git clone https://github.com/appleyuchi/RSNA_MODEL!git config --global user.email appleyuchi@163.com!git config --global use...原创 2019-10-27 18:53:03 · 439 阅读 · 1 评论 -
kaggle notebook中使用git lfs
#爲kaggle notebook配置git-lfs!curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash!apt-get install -y --allow-unauthenticated git-lfs# 下面是依賴包!pip install pret...原创 2019-10-26 21:08:01 · 1119 阅读 · 0 评论 -
修改文件后git只用两步push文件
下面是我们常用的4个git命令git statusgit add *git commitgit push有没有办法更省事儿点呢?办法如下:编辑~/.bashrc,加入alias gitpush="git commit --allow-empty-message -m '' &&git push"测试:touch test.txt(随便增加...原创 2019-10-24 20:19:44 · 960 阅读 · 0 评论 -
git lfs的安装和使用详细案例
#------------------------------------- 下面是安装部分-------------------------------------------------curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bashapt-get ...原创 2019-10-22 17:24:09 · 6010 阅读 · 0 评论 -
subprocess中执行git命令报告no such file or directory一例
正确代码如下:import subprocesscommand="cd RSNA666_HIT2080/ && git add * && git commit --allow-empty-message -m ''&& git push"res = subprocess.call(command, shell=True)print('r...转载 2019-10-22 15:20:15 · 1696 阅读 · 0 评论 -
git add失效问题以及git status结果与github网页结果不一致(转载+自己整理)
1.查下.gitignore文件以及.gitignore_global文件。2.空文件夹下面需要有.gitkeep的空白文件。3.暴力查找,某些子文件夹下面是否有.git相关的文件Reference:[1]https://stackoverflow.com/questions/7490798/git-wont-add-files[2]https://blog....原创 2019-10-21 13:27:37 · 581 阅读 · 0 评论 -
码云的用法实例
如何找到和自己相关的任务,据领导说码云不能关联任务到个人。原创 2018-02-27 16:41:15 · 378 阅读 · 0 评论 -
git乱码问题解决
git config --global core.quotepath false转载 2018-02-07 20:33:40 · 491 阅读 · 0 评论 -
Permission denied (publickey). fatal: Could not read from remote repository.
博主在github上下载tiny face的的源代码的时候,遇到git clone命令为:git clone --recursive git@github.com:peiyunh/tiny.git 而当我在ternimal下执行这条语句的时候,出现错误: Permissiondenied (publickey). fatal:Could not read from r转载 2018-02-07 19:24:49 · 3342 阅读 · 0 评论 -
刪除github上的一個repository
比如要刪除gitlearn這個repository,那麼在瀏覽器中輸入如下鏈接:https://github.com/appleyuchi/gitlearn/settings一:首先点击进入你要删除的repository,如下图,点击setting二:将网页拉到下方,找到Delete this repository 按钮,点击。三:在弹出的对话框中输入你的repository的名字,然后点击下方的...转载 2018-02-13 11:51:27 · 200 阅读 · 0 评论 -
使用gitkraken来push的流程
在登录账户的前提下以及clone到本地的条件下,现在故意在本地增加几个文件。我们知道,如果在终端操作,那么流程应该是:git add->git commit->git push那么在gitKraken中对应的操作如下:首先GitKraken会感知到你新增了一个文件,如下图,点击View changes,得到下图:然后选择stage all cha原创 2018-01-16 13:47:02 · 2858 阅读 · 0 评论 -
gitkraken同步建立repository与github上的repository
在kitkraken用github账号登录后,选择File->init选择好账户对应的git类型(这里选择GitHub.com)注意,因为Github大家都可以访问,而公司的代码是机密的,所以如果是在公司中使用GitKraken,那么就要选择Gitlab之类的类型了然后右边选定Account自己取个repository的名字:GitKraken_init_test最后选择右下方原创 2018-01-16 11:06:22 · 1149 阅读 · 1 评论 -
gitkraken把github上的东西clone到本地
首先要用github账号登录GitKraken然后选择File->Clone Repo弹出以下界面,因为已经用GitHub登录了,所以选择Clone->GitHub.com后,会发现自己github上的repository已经会自动在右边显示了。然后在右侧的Where to clone to选择好要保存的路径然后选择右下角的Clone the Repo原创 2018-01-16 10:50:27 · 2185 阅读 · 0 评论 -
bitbucket初次使用
申请账号以后(需要翻墙或者vpn),然后新建一个python的repositorygit clone https://appleyuchi@bitbucket.org/appleyuchi/python.gitcd pythonecho "# My project's README" >> README.mdgit add README.mdgit commit -m "Initial...转载 2018-02-08 12:17:37 · 937 阅读 · 0 评论 -
本地第一次对接已经存在的github上的repository
git clone git@github.com:appleyuchi/Flask-learn.gitssh-keygen -t rsa -C "appleyuchi"git clone https://github.com/appleyuchi/Flask-learn.gitgit statusgit initgit statusgit push转载 2018-03-16 20:26:27 · 432 阅读 · 0 评论 -
免输入用户名和密码以及git clone以后想提交代码
git clone https://github.com/appleyuchi/Learning-Spark.gitcd Learning-Sparkgit remote remove origingit remote add origin git@github.com:appleyuchi/Learning-Spark.gitgit push --set-upstream origin mast...原创 2018-07-14 20:45:43 · 2070 阅读 · 0 评论 -
使用码云中文乱码问题解决
在当前的repository的路径下,输入以下命令即可. git config --global core.quotepath false原创 2018-08-20 16:16:19 · 2623 阅读 · 5 评论 -
git diff中的---和+++的含义
"---"表示变动前的文件,"+++"表示变动后的文件。转载 2019-01-26 14:09:12 · 2989 阅读 · 0 评论 -
github提速
编辑/etc/hosts增加以下两句话:151.101.72.249 http://global-ssl.fastly.Net192.30.253.112 http://github.com转载 2019-06-10 14:49:23 · 549 阅读 · 0 评论 -
git commit时避免填写Commit Message
git commit --allow-empty-message -m ''Reference:https://stackoverflow.com/questions/6218199/git-commit-with-no-commit-message转载 2019-09-14 17:14:05 · 3708 阅读 · 0 评论 -
解决git push 中remote: Permission to xxxxx.git denied to xxx. fatal: unable to access xxxx 403(转)
问题复现你在切换多个github账号的时候,很容易出现下面的这种问题问题描述今天我在使用git push 将修改的项目push到github中,出现:remote: Permission to xxxxx.git denied to xxx.fatal: unable to access 'https://github.com/ xxxxx.git/': > The re...转载 2019-09-21 17:33:06 · 3486 阅读 · 2 评论 -
ubuntu16.04下面git与github对应起来
参考链接:https://www.jianshu.com/p/6c61b13e8bdb上面的参考链接中的流程先全部搞一遍。然后进行下面的:然后首先在网页上的github(当然是自己要有账号了)建立一个repository,名字叫python建完后回到自己的电脑ubuntu系统中,在自己选择的路径下:git init pythoncd pythongit remote原创 2018-01-14 12:48:07 · 556 阅读 · 0 评论