V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  HaibaraDP  ›  全部回复第 1 页 / 共 3 页
回复总数  52
1  2  3  
19 小时 40 分钟前
回复了 HaibaraDP 创建的主题 git 推送远程仓库导致本地提交记录消失,如何找回
感谢 grok3 ,通过 git reflog --date=iso 找到了
20 小时 9 分钟前
回复了 HaibaraDP 创建的主题 git 推送远程仓库导致本地提交记录消失,如何找回
2025-03-17T15:01:18.755Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 2.539s)
2025-03-17T15:01:20.720Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 1.964s)
2025-03-17T15:04:34.078Z - info: [main] Using toast activator CLSID {}
2025-03-17T15:04:34.540Z - info: [ui] [AppStore] loading 15 repositories from store
2025-03-17T15:04:34.541Z - info: [ui] [AppStore] found account: mygithubname (mygithubname)
2025-03-17T15:04:34.554Z - info: [ui] [BranchPruner] Last prune took place 5 minutes ago - skipping
2025-03-17T15:04:35.074Z - info: [ui] launching: 3.3.6 (Windows 10.0.26100)
2025-03-17T15:04:35.075Z - info: [ui] execPath: 'C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\GitHubDesktop.exe'
2025-03-17T15:04:35.673Z - info: [ui] Subscribed 'mygithubname' to Alive channel
2025-03-17T15:07:31.876Z - info: [ui] [Timing] Action 'checkout branch from list' for 'mygithubname/not_found_product' took 0.000s
2025-03-17T15:11:17.909Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 14 repositories took 17.3s of which 216.9s paused, total 234.2s
2025-03-17T15:19:35.193Z - info: [ui] [AppStore] adding repository at D:\Code\ad to store
2025-03-17T15:19:36.599Z - info: [ui] Executing isUsingLFS: git lfs track (took 1.162s)
2025-03-17T15:22:37.670Z - info: [ui] Executing push: git -c credential.helper= push origin main --set-upstream --progress (took 2.933s)
2025-03-17T15:22:39.760Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 2.084s)
2025-03-17T15:22:41.708Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 1.942s)
2025-03-17T15:40:24.559Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 15 repositories took 14.5s of which 1041.6s paused, total 1056.1s
2025-03-17T15:43:18.225Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 15 repositories took 14.0s of which 0.0s paused, total 14.0s

上面是 github desktop 的日志
20 小时 9 分钟前
回复了 HaibaraDP 创建的主题 git 推送远程仓库导致本地提交记录消失,如何找回
2025-03-17T14:56:56.606Z - info: [main] Using toast activator CLSID {27D44D0C-A542-5B90-BCDB-AC3126048BA2}
2025-03-17T14:56:57.124Z - info: [ui] [AppStore] loading 14 repositories from store
2025-03-17T14:56:57.125Z - info: [ui] [AppStore] found account: mygithubname (mygithubname)
2025-03-17T14:56:57.969Z - info: [ui] [AppStore] removing account mygithubname (mygithubname) from store
2025-03-17T14:56:57.969Z - warn: [ui] fetchAll: 'repos/mygithubname/y/issues?state=open' returned a 401
2025-03-17T14:56:57.975Z - warn: [ui] Alive web socket request failed: Error: Bad credentials
2025-03-17T14:56:58.396Z - error: [ui] Could not get Alive web socket URL for 'mygithubname'
Error: Bad credentials
at cn (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\http.ts:178:11)
at Xn.getAliveWebSocketURL (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\api.ts:848:16)
at Object.createSessionForAccount (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\stores\alive-store.ts:170:7)
at Object.subscribeToAccount (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\stores\alive-store.ts:227:11)
at Object._subscribeToAccounts (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\stores\alive-store.ts:146:37)
2025-03-17T14:56:58.396Z - info: [ui] [fetchProtectedBranches] unable to list protected branches
Error: Bad credentials
at cn (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\http.ts:178:11)
at Xn.fetchProtectedBranches (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\api.ts:1619:7)
at Za.updateBranchProtectionsFromAPI (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\stores\app-store.ts:4123:11)
2025-03-17T14:56:58.397Z - warn: [ui] fetchMentionables: failed for mygithubname/s
Error: Bad credentials
at cn (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\http.ts:178:11)
at Xn.fetchMentionables (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\api.ts:1824:16)
at mN.constructor.updateMentionables (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\stores\github-user-store.ts:90:11)
2025-03-17T14:56:58.607Z - info: [ui] launching: 3.3.6 (Windows 10.0.26100)
2025-03-17T14:56:58.616Z - info: [ui] execPath: 'C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\GitHubDesktop.exe'
2025-03-17T14:56:59.213Z - info: [ui] Executing getRemotes: git remote -v (took 1.093s)
2025-03-17T14:56:59.214Z - info: [ui] Executing getRemotes: git remote -v (took 1.833s)
2025-03-17T14:56:59.234Z - warn: [ui] Alive channel request failed: Error: Bad credentials
2025-03-17T14:57:00.352Z - warn: [ui] Alive web socket request failed: Error: Bad credentials
2025-03-17T14:57:00.352Z - error: [ui] Could not get Alive web socket URL for 'mygithubname'
Error: Bad credentials
at cn (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\http.ts:178:11)
at Xn.getAliveWebSocketURL (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\api.ts:848:16)
at Object.createSessionForAccount (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\stores\alive-store.ts:170:7)
at Object.subscribeToAccount (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\stores\alive-store.ts:227:11)
at Object._subscribeToAccounts (C:\Users\mywindowsname\AppData\Local\GitHubDesktop\app-3.3.6\webpack:\app\src\lib\stores\alive-store.ts:146:37)
2025-03-17T14:57:00.352Z - info: [ui] Stats reported.
2025-03-17T14:57:00.732Z - info: [ui] Executing installGlobalLFSFilter: git lfs install --skip-repo (took 2.151s)
2025-03-17T14:57:00.743Z - warn: [ui] Alive channel request failed: Error: Bad credentials
2025-03-17T14:57:02.157Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 2.824s)
2025-03-17T14:57:03.739Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 1.581s)
2025-03-17T14:57:05.935Z - info: [ui] [SignInStore] initializing OAuth flow
2025-03-17T14:57:05.936Z - info: [main] opening in browser: https://github.com/login/oauth/authorize?0
2025-03-17T14:57:39.593Z - info: [main] Received possible protocol arguments: 4
2025-03-17T14:57:39.595Z - info: [main] Processing protocol url
2025-03-17T14:57:39.597Z - info: [ui] [Dispatcher] requesting authenticated user
2025-03-17T14:57:39.707Z - info: [main] Received possible protocol arguments: 3
2025-03-17T14:57:41.091Z - info: [ui] Executing getSymbolicRef: git symbolic-ref -q refs/remotes/origin/HEAD (took 40.737s)
2025-03-17T14:57:42.148Z - info: [ui] [SignInStore] account resolved
2025-03-17T14:57:42.148Z - info: [ui] [AppStore] adding account mygithubname (mygithubname) to store
2025-03-17T14:57:43.060Z - info: [ui] Subscribed 'mygithubname' to Alive channel
2025-03-17T14:58:07.087Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: r - mygithubname (has token)
2025-03-17T14:58:07.166Z - info: [ui] [AppStore] adding repository at D:\Code\not_found_product to store
2025-03-17T14:58:08.688Z - info: [ui] Executing isUsingLFS: git lfs track (took 1.256s)
2025-03-17T14:58:09.447Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 2.357s)
2025-03-17T14:58:10.921Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 1.472s)
2025-03-17T14:58:13.400Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: l - mygithubname (has token)
2025-03-17T14:58:16.837Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 3.431s)
2025-03-17T14:58:18.257Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 1.419s)
2025-03-17T14:58:19.981Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: j - mygithubname (has token)
2025-03-17T14:58:23.191Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 3.206s)
2025-03-17T14:58:27.755Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 4.559s)
2025-03-17T14:58:33.514Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository:s - mygithubname (has token)
2025-03-17T14:58:55.046Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 21.527s)
2025-03-17T14:58:56.835Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 1.783s)
2025-03-17T14:59:20.012Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: v - mygithubname (has token)
2025-03-17T14:59:22.401Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 2.387s)
2025-03-17T14:59:24.005Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 1.603s)
2025-03-17T14:59:26.258Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: q - mygithubname (has token)
2025-03-17T14:59:40.294Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 14.031s)
2025-03-17T14:59:42.566Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 2.266s)
2025-03-17T14:59:43.979Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: c - mygithubname (has token)
2025-03-17T14:59:47.600Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 3.617s)
2025-03-17T14:59:49.307Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 1.706s)
2025-03-17T14:59:52.257Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: t - mygithubname (has token)
2025-03-17T14:59:55.351Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 3.090s)
2025-03-17T14:59:56.893Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 1.541s)
2025-03-17T14:59:57.094Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 14 repositories took 91.4s of which 21.3s paused, total 112.7s
2025-03-17T15:00:45.248Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: not_found_product - mygithubname (has token)
2025-03-17T15:00:48.208Z - info: [ui] [Timing] Action 'checkout branch from list' for 'mygithubname/not_found_product' took 2.960s
2025-03-17T15:00:54.653Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: not_found_product - mygithubname (has token)
2025-03-17T15:01:00.699Z - info: [ui] Executing push: git -c credential.helper= push origin master --set-upstream --progress (took 6.025s)
2025-03-17T15:01:03.029Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune --recurse-submodules=on-demand origin (took 2.327s)
2025-03-17T15:01:04.956Z - info: [ui] Executing updateRemoteHEAD: git -c credential.helper= remote set-head -a origin (took 1.926s)
2025-03-17T15:01:16.206Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: not_found_product - mygithubname (has token)
Claude 真的很喜欢手风琴设计啊哈哈
想请教下,怎么保证页面样式一致呢?定义了全局样式,但一段时间后就不再遵守了,还是需要先画设计图吗?
6 天前
回复了 CatchXS 创建的主题 奇思妙想 有没有一种相机,能指导人拍照
提取 gps 位置、日期时间、天气、人物特点等信息到小红书上检索,给出参考,感觉很有市场啊
8 天前
回复了 webs 创建的主题 生活 去医院做个检查被开了五百多块钱的药
@daidou 看楼主描述并不想买科室开的所有药,没办法只付处方上的一部分钱吧
11 天前
回复了 yeccc 创建的主题 程序员 cursor 吃相有点难看了!
他的 try again 更坑,感觉点一次 fast request 就没一个
机器可以很快的推导类型,但人达不到机器的速度。用 var 定义变量的项目我看不了一点,尤其是 python 这种语法“简洁”的
11 天前
回复了 webs 创建的主题 生活 去医院做个检查被开了五百多块钱的药
可以不缴费吧,拿着处方去可以刷医保的药店买
@neochen13 用 switch2cursor 和 switch2idea 插件切换和 idea 自身文件跳转没多大区别,文件和行号也都能定位到,就是主题变了下。
现在写 java 的方式变成下面这样了:cursor 和 idea 双开,把 PRD 和详设给 cursor 生成,用 cursor 修改单文件,多文件跳转用 switch2idea 跳转到 idea ,用 idea 跳转文件,然后再用 switch2cursor 跳转到 cursor ,用 cursor 的 tab 继续补全。除了补全相关的 AI 以外的功能都用 idea 。写好 cursorrule
idea 加 ai 插件用的比较少,感觉它只能补全 set 方法
@Internet0User 自带的输入法有一个快捷键和 IDEA 快捷键有冲突,几年了也不修复,仅限打字的话还挺好用的
25 天前
回复了 NianBroken 创建的主题 程序员 你认为目前最强的免费 AI 是什么?
grok3
26 天前
回复了 mixuxin 创建的主题 问与答 xAI 称 Grok 3 将免费提供
挺好用的,但用几次就让开 pro 了
刚毕业时在知春路,早 10 晚 6 ,中午休息 2 小时,也没什么活,但工资特别低
自定义序列化返回枚举对象,返回{"code":0,"name":"危急"},另外再提供一个字典接口
k8s 集群部署和一个 git 仓库 maven 多模块项目是哪里有冲突呢?
34 天前
回复了 bevishe 创建的主题 分享发现 大家有啥长期使用并安利的软件
pot:翻译
Snipaste:截图
Light Player:音乐
AFFiNE:笔记
1  2  3  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3252 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 577ms · UTC 12:24 · PVG 20:24 · LAX 05:24 · JFK 08:24
Developed with CodeLauncher
♥ Do have faith in what you're doing.