Mac Git 学习笔记
1 lapommedeMacBook-Pro:~ lapomme$ cd GitHub 2 lapommedeMacBook-Pro:GitHub lapomme$ cd 3 lapommedeMacBook-Pro:~ lapomme$ cd GitHub 4 lapommedeMacBook-Pro:GitHub lapomme$ ls 5 BscAlarm BuiltBtsAbis IMDbinfo_python TravelSaleman Watermarking 6 lapommedeMacBook-Pro:GitHub lapomme$ mkdir IMDb_info_python //创建目录 7 lapommedeMacBook-Pro:GitHub lapomme$ ls 8 BscAlarm IMDb_info_python TravelSaleman 9 BuiltBtsAbis IMDbinfo_python Watermarking 10 lapommedeMacBook-Pro:GitHub lapomme$ cd IMDb_info_python 11 lapommedeMacBook-Pro:IMDb_info_python lapomme$ pwd //显示目录 12 /Users/lapomme/GitHub/IMDb_info_python 13 lapommedeMacBook-Pro:IMDb_info_python lapomme$ git init //GIT初始化 14 Initialized empty Git repository in /Users/lapomme/GitHub/IMDb_info_python/.git/ 15 lapommedeMacBook-Pro:IMDb_info_python lapomme$ ls –ah //显示隐藏目录 16 . .. .git 17 lapommedeMacBook-Pro:IMDb_info_python lapomme$ git add ImdbInfo.py //在目录中添加文件后,告诉Git添加到库中 18 lapommedeMacBook-Pro:IMDb_info_python lapomme$ git commit -m "IMDb information programme" //提交文件,说明更改 19 [master (root-commit) b054d4b] IMDb information programme 20 1 file changed, 59 insertions(+ //显示1次改动,59行插入