Reputation: 311
I have been unable to find how to rename a local repo in GitKraken, or if this feature is unavailable.
I believe the option was available if you use the Init feature to generate the local and remote repos, but I'm wanting to update the repo name after it's already been set up and used.
(I set up my remote repo on BitBucket, then cloned my local repo in GitKraken, and it just uses the last folder name in the local path as the repo name.)
Upvotes: 18
Views: 4539
Reputation: 1
Having encountered this issue myself, if you're pushing a repo to an origin for the first time, you can actually rename it in Git Kraken, as shown in the screenshot below.
I hope this helps!
Git Kraken "Create remot and push local refs" page.
Upvotes: 0
Reputation: 111
This is the top result when searching for solutions to this issue.
In case anyone stumbles across this post, these days GitKraken has the ability (at least it does on macOS) to add aliases to existing repos which resolves this issue for me.
To add an alias, you first need to open the repo, then right-click the tab (in the tab bar at the top), and choose the "Alias repository" option. This will then allow you to define an alternative name for that particular repo.
A screenshot showing the open, tab context menu.
Happy aliasing! :)
Upvotes: 11
Reputation: 1383
My recommendation would be to push everything you have to repo, then rename on the repository itself online, then re-clone from the new location as if it was a new repo.
Upvotes: 4