Skip to content

Commit b0a44df

Browse files
arthurnnCopilot
andcommitted
Add fetchco git alias
Fetches a remote branch and checks it out in one step. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fb0e52d commit b0a44df

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gitconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
[alias]
1010
co = checkout
1111
ci = commit
12+
fetchco = "!f() { git fetch origin \"$1\":\"$1\" && git checkout \"$1\"; }; f"
1213
[core]
1314
excludesfile = ~/.gitignore
1415
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol

0 commit comments

Comments
 (0)