We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
git gtr cd
1 parent daee0c1 commit 050b26aCopy full SHA for 050b26a
bin/git-gtr
@@ -106,6 +106,14 @@ main() {
106
help|--help|-h)
107
cmd_help "$@"
108
;;
109
+ cd)
110
+ local _shell_name
111
+ _shell_name="$(basename "${SHELL:-bash}")"
112
+ log_error "'cd' requires shell integration (subprocesses cannot change your shell's directory)"
113
+ log_info "Set up with: eval \"\$(git gtr init $_shell_name)\""
114
+ log_info "Then use: gtr cd [<branch>]"
115
+ exit 1
116
+ ;;
117
*)
118
log_error "Unknown command: $cmd"
119
echo "Use 'git gtr help' for available commands"
0 commit comments