-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
remote modify: add name
param?
#3599
Comments
BTW if you actually run my example command to modify the inexistent
You have to manually fix the config file to fix this. |
(Yep, I hit the same issue here #3552 - quite annoying one :) )
not sure this is very advanced to be honest |
Not advanced in terms of skill, but you need to know that remote config is in that file. It won't be obvious knowledge for DVC beginners. Also for gdrive remotes the file in .dvc/tmp/...json would also need to be changed manually, I think (if it already exists). |
it doesn't contain the remote name yet. With GDrive multiple remotes are not supported effectively yet.
it's a good question. I think for people familiar with command line, git, etc it should be more or less intuitive that there is a config somewhere. |
OK. No strong opinion. I would err on the side of adding this which I'm assuming should be pretty easy, since |
I'd like to look into it. @jorgeorpinel How about make it |
Good idea, indeed that's how it works on Git. But since we already have a |
It does not hurt to add both? Is there some modify command analog in GIt? |
Not really. They have a subcommand for each remote config param you can change: https://git-scm.com/docs/git-remote |
|
Plus |
I have no strong opinion. Either introduce |
1. add new command `dvc remote rename <old> <new>`. 2. add tests for this new command.
* fixed #3599 1. add new command `dvc remote rename <old> <new>`. 2. add tests for this new command. * Update dvc/command/remote.py Co-authored-by: Peter Rowlands (변기호) <[email protected]> * Change about code review * For deepsource * Update dvc/command/remote.py Co-authored-by: Peter Rowlands (변기호) <[email protected]>
So you can change the name of a remote e.g.
The workaround rn is to just add the remote again and remove the previous one. But if it has some special configuration then it's more difficult. A better workaroud is to edit the .dvc/config file but relatively advanced.
git remote
lets you change a remote name BTW.The text was updated successfully, but these errors were encountered: