Tôi thiết lập github for mac
và bây giờ tôi đang cố gắng sử dụng lệnh git từ thiết bị đầu cuối.Git: 'rebase' không phải là lệnh git. Xem 'git --help'
Nếu tôi cố gắng chạy lệnh git rebase
tôi nhận được thông báo sau
> cd /Applications/GitHub.app/Contents/Resources/git/bin
> git rebase
git: 'rebase' is not a git command. See 'git --help'.
>git --help
usage: git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
[-c name=value] [--help]
<command> [<args>]
The most commonly used git commands are:
...
rebase Forward-port local commits to the updated upstream head
....
Như bạn có thể thấy từ kết quả giúp đỡ các tùy chọn rebase có mặt.
Điều gì sai trong git của tôi?
git --version
git version 1.7.8.2
'$ PATH' của bạn là gì? Tôi đã có thể mong đợi bạn phải chạy 'git' từ thư mục đó bằng'./Git' và không chỉ 'git', mà tôi cho rằng sẽ chọn phiên bản hệ thống đã cài đặt. – trojanfoe