How do I change the name of that folder? I've tried, but nothing online seems to be working. Is there even any way to change its name?
Thanks
Don't use Github.
000webhost is a much, much better alternative and allows the ability to alter the name of folders.
As someone already answered this question link
If you want a better interface (Vscode). you can try online version vscode hosted by official Github.
Open the repo in Github and press . that will redirect you from github.com to github.dev
If this is your first time Install and accept if you agree with the terms,
Now you can just Vscode,
Right side, you will see the Explorer (file-tree).
Go to the folder, right-click and select rename and enter a new name
Once renamed, open Source Control (Third Icon or press control + shift + g)
Enter the commit message and press command + enter
That's it.
Related
Sometimes I want to provide a link to some source code in the comment to an issue.
If I open repository in browser and find the fileI need, the link refers to master branch by default. It means that over time the code referred by the link will change, because the master will move together with commits history.
In GitHub and GitLab when you want to get a permanent link on a file you just opened, it is enough to press y on the keyboard and the link will switch from referring the master branch to particular commit hash it points to.
I.e. https://github.com/octocat/Hello-World/blob/master/README -> https://github.com/octocat/Hello-World/blob/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d/README
At work I use BitBucket server (v7.10.1, if it matters) and unfortunately the y does not work, and I also do not see any button on UI to get permanent link. How can I achieve the same result (get permanent link) on BitBucket server?
I know a couple of tricks I am not satisfied with:
using Bitbucket Linky plugin for Intellij, but I want a more light-weight way
pressing History button on a file, and choosing the most recent one (but it does not give you the master hash, it gives the hash of the last change of the file. And also this button won't work if the file has a single version and never changed after the 1st commit)
Got to the version you want, and then click 'Raw file' (top right hand side of screen)
The path in the address bar should now be a permanent link. It will be the raw version of the file unfortunately, but it is a permanent link.
I can find this information using GitLens extension and by using the command line, but using the standard VSCode Git menu/sidebar, how do you find out the remotes attached to the current folder? It doesn't seem to want to tell me this anywhere obvious. I've tried hovering, using the '...', clicking the status bar, etc...
thanks.
There doesn't appear to be anything to only print the remotes, but digging around in commands.ts, I found this sequence that may suffice.
First, use the Command Palette (Ctrl+Shift+P) to run "Git: Pull From..." (internally known as command.pullFrom):
With multiple folders open, this will prompt for which repo to query:
It appears that the initially selected repo is always the one containing the active text editor, so you can just hit Enter immediately. If only one folder is open, that step is skipped.
This displays the "Pick a remote" choice:
This lets you see your remotes, along with their URLs, which is what I think you wanted to see.
Just hit Esc to cancel out so you don't actually pull anything.
I want to link to a line of code in such a way that the link will continue to work even when the file is updated in future commits.
In Github I would do this by pressing 'y' to move to a version of the page that includes the blob SHA:
https://github.com/rails/rails/blob/b49e38b76b0998b0a8312d8c08c98728d3de2006/activerecord/lib/arel/attributes/attribute.rb#L30
(Alternatively GitHub has a 'copy permalink' option in the '...' menu that appears in the margin when you select a line - documented here.)
Is there an equivalent in Azure DevOps?
The link that I get when I select a line has the form:
https://.../_git/project?path=XXXX&version=GBmaster&line=426&lineStyle=plain&lineEnd=427&lineStartColumn=1&lineEndColumn=1
Lots of parameters defining the selection but nothing pinning the file version.
Edit:
The below illustrations can be summarized in a few keyboard shortcuts.
Open the repo Files view using the 'e' global shortcut
Use 't' to put focus on the path selection to quickly navigate to the file in question
point 2 and 3 are order agnostic in relation to one another
Use 'y' to change the Files view to be based on the latest commit instead of on the branch
Make selection
Copy link as shown in illustration below
Browse files on the commit
Make sure you're browsing the entire source for the commit. Selecting lines when viewing the commit itself (ie AzDOs fancy git show) is for adding comments to the commit, but it doesn't help produce a link to the line # that version, nor is there a way (at least not that I could find) to get a link to the comment made on the line. Getting a link to a comment on a line in a commit might have been helpful to provide additional direct context to what is linked and why, but that's also not what you asked for.
don't click on the commit itself
make sure you're browsing all files as of a commit (not a branch)
Make selection
You should be able to select a line in the file contents and get a link to that line(s) in that version.
note: the link produced here is even more lengthy than the one you provided in your question.
Joy
When you navigate to the copied link, you will be directed to the commit and file contents with the line highlighted.
Understand, this link is bound to the commit you used to create it not to the tip of the branch. I expect this was how links are surfaced to be more sure that the link wouldn't break or lose context as the commit at the tip of the branch changes over time.
Thank you #JoshGust. For anyone else who wants the abbreviated version:
Files -->
(your repo branch) -->
History -->
Click A Commit hash/number (Latest/Head usually) -->
Browse Files -->
Your file -->
Select text & get a link.
Sheesh... quite some hoops to jump through, but glad it's possible.
To create a web (repository) link to a specific line from within your IDE, there are extensions with options to link to files, selections, to a branch or to a specific commit.
I am using these ones:
Editor
Plugin
Visual Studio Code
Git Web Links for VS Code
Visual Studio 2022
Git Web Links
I have a GitHub repository where I put my jupyter notebooks in it. While I open my notebooks in GitHub, I usually see a pencil button where I can Edit my notebook:
However for some other notebooks in the same repository it disappears:
Why this happens and how to fix it?
It is simply because of the size of the file. Github does not allow editing large files (not sure what is the exact size limit) It sometimes even restricts viewing such files, and they can be viewed only in the raw mode.
To edit these files, edit them in your local clone and push them to the desired branch using git cli, Github Desktop, SourceTree etc.
Edit: Answer is outdated now. Please see the workaround mentioned in comments.
As per Wayne Bloss' comment, it's actually possible to exchange the blob to edit in the URL and edit files that have the edit button hidden.
https://github.com/orga/repo/blob/branch/folder/filename.extension becomes https://github.com/orga/repo/edit/branch/folder/filename.extension
In my case, it was a lifesaver because I couldn't checkout the file on Windows due to an illegal character in the name of the file.
In Eclipse, I accidentally SVN update my code to HEAD version of the repository. My local code is what I want to keep, so how do I revert to that?
Tks.
An easy way to do this:
Right click on the file you would like to restore
Go to Team
Select Show Local History
Choose the desired date
Copy the content and paste in your actual file
And it's done... Enjoy.
You can access the local history in eclipse. Refer to this link
http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fteam_synchronize_localhistory_example.htm