git仓库推送到远端
1、创建仓库
2、复制地址
3、将远端仓库拉取到本地
git clone https://gitee.com/beihangya/rpc.git
rpc 文件下又.git
[cxq@iZwz9fjj2ssnshikw14avaZ RPC_git]$ ll
total 4
drwxrwxr-x 3 cxq cxq 4096 Nov 24 23:13 rpc
[cxq@iZwz9fjj2ssnshikw14avaZ RPC_git]$ cd rpc/
[cxq@iZwz9fjj2ssnshikw14avaZ rpc]$ ll
total 12
-rw-rw-r-- 1 cxq cxq 2489 Nov 24 23:11 jsoncpp.cpp
-rw-rw-r-- 1 cxq cxq 810 Nov 24 23:09 README.en.md
-rw-rw-r-- 1 cxq cxq 899 Nov 24 23:09 README.md
[cxq@iZwz9fjj2ssnshikw14avaZ rpc]$ ls -al
total 28
drwxrwxr-x 3 cxq cxq 4096 Nov 24 23:13 .
drwxrwxr-x 3 cxq cxq 4096 Nov 24 23:13 ..
drwxrwxr-x 8 cxq cxq 4096 Nov 24 23:13 .git
-rw-rw-r-- 1 cxq cxq 430 Nov 24 23:09 .gitignore
-rw-rw-r-- 1 cxq cxq 2489 Nov 24 23:11 jsoncpp.cpp
-rw-rw-r-- 1 cxq cxq 810 Nov 24 23:09 README.en.md
-rw-rw-r-- 1 cxq cxq 899 Nov 24 23:09 README.md
[cxq@iZwz9fjj2ssnshikw14avaZ rpc]$ git add .
[cxq@iZwz9fjj2ssnshikw14avaZ rpc]$ git commit -m "XXXXXX"
[master ff1e499] jSON格式的代码
1 file changed, 90 insertions(+)
create mode 100644 jsoncpp.cpp
[cxq@iZwz9fjj2ssnshikw14avaZ rpc]$ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Username for 'https://gitee.com': beihangya
Password for 'https://beihangya@gitee.com':
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 1.40 KiB | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Powered by GITEE.COM [1.1.5]
remote: Set trace flag 1e459a93
To https://gitee.com/beihangya/rpc.git
60e3f7d..ff1e499 master -> master