远程仓库
背景
# 查看文件列表
$ ls
LICENSE README.md test.txt
# 查看文件内容
$ cat test.txt
add test.txt# 写入新的内容并提交到本地仓库
$ echo "see https://gitbook.prlrr.com/git/usage/remote-repository.html" >> test.txt
$ git add test.txt
$ git commit -m "see https://gitbook.prlrr.com/git/usage/remote-repository.html"
[master b3d8193] see https://gitbook.prlrr.com/git/usage/remote-repository.html
1 file changed, 1 insertion(+)
# 推送到远程仓库
$ git push origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 359 bytes | 359.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:adsryen/git-demo.git
8e62564..b3d8193 master -> master
$ 
小结
最后更新于