直接执行是可以的,shell里面就不识别了
[shaoyang@iZ2zeiz2rcx33nwq8ubi70Z developer]$ cd /developer/git-repository/mmall_learning
[shaoyang@iZ2zeiz2rcx33nwq8ubi70Z mmall_learning]$ git checkout v1.0
Already on 'v1.0'
Your branch is up-to-date with 'origin/v1.0'.
[shaoyang@iZ2zeiz2rcx33nwq8ubi70Z mmall_learning]$ git fetch
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (6/6), done.
From gitee.com:linkenfaqiu/mmall_learning
b85829e..a78d713 v1.0 -> origin/v1.0
[shaoyang@iZ2zeiz2rcx33nwq8ubi70Z mmall_learning]$ git pull
Updating b85829e..a78d713
Fast-forward
src/main/resources/mmall.properties | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)