Add functionality to clone repositories with branch management #24268
Angelk90
started this conversation in
Feature Ideas / Enhancements
Replies: 2 comments
-
its annoying to checkout to a remote branch each time i clone so this is good |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why not just separate config based on the remote? I assume you clone outside of Zed as well.. most do. $ cat ~/.gitconfig
[user]
useConfigOnly=true
[includeIf "gitdir:~/Sites/devops/"]
path = ~/.config/git/.gitconfig-gitlab
[includeIf "hasconfig:remote.*.url:https://git.company-one.eu/*/**"]
path = ~/.config/git/.gitconfig-one
[includeIf "hasconfig:remote.*.url:git@git.company-two.eu:*/**"]
path = ~/.config/git/.gitconfig-two
[includeIf "hasconfig:remote.*.url:git@git.company-three.eu:**"]
path = ~/.config/git/.gitconfig-three
[includeIf "hasconfig:remote.*.url:https://github.com/*/**"]
path = ~/.config/git/.gitconfig-github
[includeIf "hasconfig:remote.*.url:git@github.com:*/**"]
path = ~/.config/git/.gitconfig-github
[push]
autoSetupRemote = true
[core]
excludesfile = ~/.gitignore
[pull]
rebase = true
[safe] Also multiple branches can be checked out at the same time using Maybe I misunderstand the question. But anyways, it seems like it is a lot for an code editor. Maybe handle this outside of Zed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Add the ability to clone Git repositories via URL, with advanced branch management.
When a repository contains more than one branch, the user should be able to choose between the following options:
This feature will improve management and workflow, saving time when working with repositories that contain many branches.
Desired behavior:
Advanced options:
--depth 1
) to save time and space, if not all historical commits are needed.When cloning via ssh, it allows you to select user and will change url like this:
git@github.com-user1:zed-industries/zed.git
~/.ssh/config
:Beta Was this translation helpful? Give feedback.
All reactions