$ git clone [email protected]:zwbao/zmayssnps.git Cloning into 'zmayssnps'... The authenticity of host 'github.com (13.229.188.59)' can't be established. RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,13.229.188.59' (RSA) to the list of known hosts. remote: Counting objects: 15, done. remote: Compressing objects: 100% (8/8), done. remote: Total 15 (delta 2), reused 15 (delta 2), pack-reused 0 Receiving objects: 100% (15/15), done. Resolving deltas: 100% (2/2), done.
The authenticity of host 'github.com (xx.xx.xx.xx)' can't be established. RSA key fingerprint is xx.xx.xx.xx.xx. Are you sure you want to continue connecting (yes/no)?
$ echo"Samples expected from sequencing core 2018-06-26" >> README.md $ git commit -a -m "added information about samples" warning: LF will be replaced by CRLF in README.md. The file will have its original line endings in your working directory. [master 1be82cf] added information about samples 1 file changed, 1 insertion(+) $ git push origin master Counting objects: 3, done. Delta compression using up to 8 threads. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 367 bytes | 367.00 KiB/s, done. Total 3 (delta 1), reused 0 (delta 0) remote: Resolving deltas: 100% (1/1), completed with 1 local object. To https://github.com/zwbao/zmayssnps.git 77eae85..1be82cf master -> master
$ # in zmays-snps-barbara/zmayssnps/ $ git log--pretty=oneline --abbrev-commit 1be82cf (HEAD -> master, origin/master, origin/HEAD) added information about samples 77eae85 added .gitignore 13770d8 remove test.txt 043a28d add test.txt 630fbbb Add a line d217683 Add README
使用Pushing 和 Pulling 來(lái)進(jìn)行合作
Barbara對(duì)這個(gè)項(xiàng)目的README.md文件做了一些修改:
$ # in zmays-snps-barbara/zmayssnps/ -- Barbara's version $ echo "\n\nMaize reference genome version: refgen3">> README.md $ git commit -a -m "added reference genome info" warning: LF will be replaced by CRLF in README.md. The file will have its original line endings in your working directory. [master 734e105] added reference genome info 1 file changed, 1 insertion(+) $ git push origin master Counting objects:3, done. Delta compression using up to 8 threads. Compressing objects:100% (3/3), done. Writing objects:100% (3/3), 357 bytes | 357.00 KiB/s, done. Total 3 (delta 1), reused 0 (delta 0) remote: Resolving deltas: 100% (1/1), completed with 1 local object. To github.com:zwbao/zmayssnps.git 1be82cf..734e105 master -> master
$ cat README.md Git is a version control system. Git is free software.Git is free software distributed under the GPL. Project started 2018-06-11 Samples expected from sequencing core 2018-06-26 \n\nMaize reference genome version: refgen3
查看最近的兩次提交記錄:
$ git log -n 2 commit269aa09418b0d47645c5d077369686ff04b16393 Author: Barbara <[email protected]> Date: Sat Sep 2822:58:552013-0700