简体   繁体   中英

How to view diff of a file in github?

I saw the following https://help.github.com/articles/comparing-commits-across-time/

It says "To get to the compare view, append /compare to your repository's path."

but where is the repository's path? if I add it to the url of the page then it simply goes to 404 page not found.

The repository path always looks like this: https://github.com/OWNERNAME/REPONAME

Just add /compare to this path.

Your git path is always depends on your username. Different types of website give git repository service such as github,gitlab, bitbucket etc. If you create an account there then your username will be like below.

suppose, your username for github is someone . So your profile will be https://github.com/someone
https://gitlab.com/someone
https://bitbucket.com/someone

If you make repository in your profile then it will be like below. Suppose, you have made a repository called something . Then your repository will be
https://github.com/someone/something
https://gitlab.com/someone/something
https://bitbucket.com/someone/something

Hope that, you have got idea about git path in the repository

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM