-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support symbolic link #156
Comments
@nelsonic Well, yes, but what I want is not preserving history. I have updated my comment to avoid confusion. |
@npcode ah, ok. you want GitHub to # create a file
vi readme.md
# move the file to a sub-directory
mv readme.md subdir/readme.md You want a link to But if you then create another file in the project with the same path as the original
what would you expect the behaviour to be...? |
I assumed I already created a symbolic link 'readme.md' which targets 'subdir/readme.md'. So I can't create another 'readme.md' there. Here is my example repository: https://github.com/npcode/symlink-test In the repository, '/hello.txt' is a symbolic link to subdir/hello.txt'. If you click the file in Github Code, Github shows you the contents of the symbolic link. I want that Github redirects it to 'subdir/hello.txt' instead, as Unix-like OS does. |
GitHub's current behavior is more similar to a Unix-like implementation; as far as the UI is concerned, |
Perhaps the symbolic link could be rendered as a link to the target then, instead of a hard redirect. |
That's exactly the reason why you should provide your friends with a link based on a specific revision, not on a moving HEAD. That means that instead of
you should post your friends something like
and expect them to be clever enough to find out a newer revision of the file if they need so. |
Move the previous operator-dev-doc down into this document as a README, and drop a reference in the old location for backwards-compat with existing linkers. I'd prefer a symlink, but GitHub's tree browser just renders the link path as an unclickable string [1]. In the spirit of 28c6ca7 (enhancements/update: Consolidate update-related enhancements, 2020-08-05, openshift#422). [1]: dear-github/dear-github#156 (comment)
I not sure if this is the right issue but I wish github UI would redirect symlinks to the actual file (if it exists in the repository) instead of showing location in plain text. |
yeah +1 for this issue. |
Symbolic link can cause a loop. This is true on Linux system
I think Github will never support this :) |
I think Github could handle this in the same way that Linux does and abort after so many redirects (or cyclical redirects). |
Sometimes I move document file to another directory in my repository. Unfortunately it breaks the link(url) to the old location. My friends who click the old link I gave before moving the file will see 404 Not Found error.
It would be nice if I add a symlink (old -> new) then Github redirects it to the new location.
The text was updated successfully, but these errors were encountered: