Git 用法说明
终端命令需要在 Git Bash 下进行操作
1. 设置用户和邮箱,查看用户和邮箱
ml@DESKTOP-M7BNOKE MINGW64 ~
$ git cong --global user.name "xxx"
ml@DESKTOP-M7BNOKE MINGW64 ~
$ git cong --global user.email "xxxx"
ml@DESKTOP-M7BNOKE MINGW64 ~
$ git cong --global user.name
xxx
ml@DESKTOP-M7BNOKE MINGW64 ~
$ git cong --global user.email
xxxxxxx
2. 切换到下载的本地工程目录下 注意反斜杠
ml@DESKTOP-M7BNOKE MINGW64 /e
$ cd /e/智能分析/git2/VideoAnalyzer_VideoService
ml@DESKTOP-M7BNOKE MINGW64 /e/智能分析/git2/VideoAnalyzer_VideoService (master)
3. 查看此目录下的状态
ml@DESKTOP-M7BNOKE MINGW64 /e/智能分析/git2/VideoAnalyzer_VideoService (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
4.到自己的目录下,把代码克隆下来:
ml@DESKTOP-M7BNOKE MINGW64 /e/智能分
析/git4/VideoAnalyzer_VideoService/videoAnalyzer (master)
$ git clone ssh://liang.ma@192.168.3.13:29418/VideoAnalyzer_VideoService.git
Cloning into 'VideoAnalyzer_VideoService'...
remote: Counting objects: 148, done
remote: Finding sources: 100% (148/148)
remote: Total 148 (delta 37), reused 144 (delta 37)
Receiving objects: 100% (148/148), 3.37 MiB | 11.70 MiB/s, done.
Resolving deltas: 100% (37/37), done.
5.修改代码文件后可以看到它的状态有变化:
ml@DESKTOP-M7BNOKE MINGW64 /e/智能分
析/git4/VideoAnalyzer_VideoService/videoAnalyzer (master)
评论0
最新资源