1 2 3 | $ cd www.move2linux.com $ ls greenbar_wide.gif images index.html legacy.html services.html |
1 2 | $ git init Initialized empty Git repository in .git/ |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | $ git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # greenbar_wide.gif # images/ # index.html # legacy.html # services.html nothing added to commit but untracked files present... |
1 | $ git add . |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | $ git status # On branch master # # Initial commit # # Changes to be committed: # (use "git rm --cached <file>..." to unstage) # # new file: greenbar_wide.gif # new file: images/digits/b/0.gif # new file: images/digits/b/1.gif # new file: images/digits/b/4.gif # new file: images/digits/b/5.gif # new file: images/digits/b/6.gif # new file: images/digits/b/7.gif # new file: images/digits/b/8.gif # new file: images/digits/b/9.gif # new file: index.html # new file: legacy.html # new file: services.html # |
1 2 3 4 | $ git commit Created initial commit dfbd6cc: Initial checkin 12 files changed, 285 insertions(+), 0 deletions(-) ... |
1 | $ git clone /home/jake/src/maps |
1 2 | $ git clone remote-machine:/home/jake/src/maps $ git clone ssh://remote-machine/home/jake/src/maps |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |