Git
Git
zxucver
这个作者很懒,什么都没留下…
展开
-
git token使用
2021年8月13日,git不再支持密码方式验证,而是建议使用token。token生成个人设置 > Settings > Personal access tokens > Generate new tokentoken使用clone新的项目时,拼接token和http链接:https://[email protected]/owner/repo.gitclone新的项目时使用http链接,密码换成token已经clone的项目,在.git/config中将原来的htt原创 2021-08-16 22:00:32 · 7534 阅读 · 1 评论 -
github镜像站
github常常会出现无法clone的情况,此时可以使用镜像站代替https://github.com.cnpmjs.orgorhttps://hub.fastgit.org比如:github中任意项目,选择http进行clonehttps://github.com/KevinQian97/ELECTRICITY-MTMC.git替换为https://github.com.cnpmjs.org/KevinQian97/ELECTRICITY-MTMC.git...原创 2021-03-01 11:28:24 · 6279 阅读 · 0 评论 -
git new repository上传
Command line instructions原创 2021-07-26 16:04:23 · 287 阅读 · 0 评论 -
git pull 所有branch和tag并上传
git branch -r | grep -v ‘->’ | while read remote; do git branch --track “KaTeX parse error: Expected '}', got '#' at position 8: {remote#̲origin/}" "remote”; donegit fetch --allgit pull --all原创 2021-07-26 16:00:49 · 2003 阅读 · 0 评论