On Gitlab, how to view a file as of commit ref

有些话、适合烂在心里 提交于 2019-12-11 14:54:41

问题


On Gitlab, how to view a file as of commit ref? I know that that on command line git, the command is:

git show <commit ref>:<file_name>

how to I do the same on gitlab?


回答1:


Go to URL https://gitlab.com/$USER/$REPO/blob/$SHA1/path/to/file

For example, https://gitlab.com/sqlobject/sqlobject/blob/2ce592300bdd0cfcb444b24cdfd4b2e412fd7bda/sqlobject/main.py — this is /sqlobject/main.py file from commit 2ce5923 of SQLObject. User is sqlobject, repository is also sqlobject.



来源:https://stackoverflow.com/questions/48525235/on-gitlab-how-to-view-a-file-as-of-commit-ref

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!