上一页 1 ··· 224 225 226 227 228 229 230 231 232 ··· 498 下一页
摘要: Once a commit is pushed, you do NOT want to use git reset to undo it - because reset will rewrite the history tree, and anyone who has already pulled 阅读全文
posted @ 2020-01-09 15:01 Zhentiw 阅读(157) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-01-09 02:18 Zhentiw 阅读(0) 评论(0) 推荐(0)
摘要: If you've removed a commit with git reset --hard, it's still possible to recover the commit using git reflog to look up the commit hash. Once we find 阅读全文
posted @ 2020-01-08 20:35 Zhentiw 阅读(141) 评论(0) 推荐(0)
摘要: git reset has three primary options that we might use: --soft, --hard and --mixed (the default). We'll use git reset to undo the latest commit in all 阅读全文
posted @ 2020-01-08 20:29 Zhentiw 阅读(118) 评论(0) 推荐(0)
摘要: Generators offer flexible alternatives to working with arrays and how you want to iterate through the data. While most scenarios are covered by the me 阅读全文
posted @ 2020-01-08 17:58 Zhentiw 阅读(147) 评论(0) 推荐(0)
摘要: Generator functions are great at generating data. You can create all types of functions that take params to define what sort of data to generate. The 阅读全文
posted @ 2020-01-08 17:01 Zhentiw 阅读(106) 评论(0) 推荐(0)
摘要: Since generators can take initial values and expose a next method which can run updates on the initial value, it becomes trivial to make a state machi 阅读全文
posted @ 2020-01-08 16:59 Zhentiw 阅读(134) 评论(0) 推荐(0)
摘要: Generators emulate the behavior of a closure where they wrap an initial value then can take subsequent values through next to yield something based on 阅读全文
posted @ 2020-01-08 16:47 Zhentiw 阅读(125) 评论(0) 推荐(0)
摘要: Generators allow you to hook together multiple generators with the yield* syntax. This allows you to branch off into many different types of iteration 阅读全文
posted @ 2020-01-08 16:30 Zhentiw 阅读(191) 评论(0) 推荐(0)
摘要: Generators allow you to use the yield * syntax to yield each iteration of nested iterable as part of the main iterations. This enables you to combine 阅读全文
posted @ 2019-12-29 13:45 Zhentiw 阅读(129) 评论(0) 推荐(0)
上一页 1 ··· 224 225 226 227 228 229 230 231 232 ··· 498 下一页