随笔分类 -  git

摘要:* Please tell me who you are. Run git config –global user.email “you@example.com” git config –global user.name “Your Name” to set your account’s defau 阅读全文
posted @ 2024-04-02 09:55 opensmarty 阅读(492) 评论(0) 推荐(0)
摘要:删除分支命令 git branch -D branchName 删除当前分支外的所有分支 git branch | xargs git branch -d 删除分支名包含指定字符的分支 git branch | grep 'upstream*' | xargs git branch -d 该例将会删 阅读全文
posted @ 2023-04-20 09:52 opensmarty 阅读(839) 评论(0) 推荐(0)
摘要:【gogs迁移后错误提示】 remote: hooks/pre-receive: line 2: /data/gogs/gogs: No such file or directory To http://192.168.1.129:53000/yin.xia/sgs-vue.git ! [remot 阅读全文
posted @ 2023-03-22 11:02 opensmarty 阅读(866) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-06-07 03:38 opensmarty 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-06-07 01:49 opensmarty 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-06-07 01:00 opensmarty 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2020-02-16 01:27 opensmarty 阅读(0) 评论(0) 推荐(0)
摘要:git branch 和 git checkout经常在一起使用,所以在此将它们合在一起 1.Git branch 一般用于分支的操作,比如创建分支,查看分支等等, 1.1 git branch 不带参数:列出本地已经存在的分支,并且在当前分支的前面用"*"标记 1.2 git branch -r 阅读全文
posted @ 2019-06-18 13:32 opensmarty 阅读(1441) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2019-06-05 09:55 opensmarty 阅读(1) 评论(0) 推荐(0)
摘要:场景:因为有事情需回到学校搞毕设,同事在公司说接口代码有问题,需要修改; 我用笔记本把代码同步到笔记本,然后做了一些修改、提交。修改完成。 第二天我来到公司(公司里用台式机,不是自己的笔记本),忘了先git pull到本地之后,直接在台式机上的代码进行编写,突然想起忘了pull了,然后想用git p 阅读全文
posted @ 2019-05-28 17:27 opensmarty 阅读(233) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2019-03-29 10:56 opensmarty 阅读(39) 评论(0) 推荐(0)