所以,我试图找到一个特定提交的分支名称.(c853d8cf3ae34dae9866b874b96c6529515d7e90)
c853d8cf3ae34dae9866b874b96c6529515d7e90
我在git问题上引用了父ID和提交id. 如何才能找到给定的提交ID被推入' x'分支?
x
github git-commit
我有一段代码,我要求用户输入一个数字作为我的问题的答案.我可以做,to_i但棘手/垃圾输入将逃脱to_i.例如,如果用户输入693iirum5答案,则#to_i会将其删除693.
to_i
693iirum5
693
请建议一个函数,而不是正则表达式.在此先感谢您的回复.
ruby validation integer
git-commit ×1
github ×1
integer ×1
ruby ×1
validation ×1