- 为了直接编译go代码,把依赖库放common下了。
- 然后, 把下载回来的git 代码上传了

- 怎么才能 直接上传代码呢?
直接add报错:fatal: in unpopulated submodule ‘common/atomic’
zhangbin@LAPTOP-F1POBCSR MINGW64 /d/Code/GaoKeYong/RPC/livecdn/common/atomic (master)
$ git add .
fatal: in unpopulated submodule 'common/atomic'
解决:先删掉 git rm --cached . -rf
zhangbin@LAPTOP-F1POBCSR MINGW64 /d/Code/GaoKeYong/RPC/livecdn/common/atomic (master)
$ git rm --cached . -rf
rm 'common/atomic'
然后添加:git add .
zhangbin@LAPTOP-F1POBCSR MINGW64 /d/Code/GaoKeYong/RPC/livecdn/common/atomic (master)
$ git add .
warning: LF will be replaced by CRLF in common/atomic/origin.git/HEAD.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/config.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/description.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/applypatch-msg.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/commit-msg.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/fsmonitor-watchman.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/post-update.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/pre-applypatch.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/pre-commit.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/pre-merge-commit.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/pre-push.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/pre-rebase.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/pre-receive.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/prepare-commit-msg.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/push-to-checkout.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/hooks/update.sample.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/info/exclude.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/logs/HEAD.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/logs/refs/remotes/origin/HEAD.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/packed-refs.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in common/atomic/origin.git/refs/remotes/origin/HEAD.
The file will have its original line endings in your working directory
zhangbin@LAPTOP-F1POBCSR MINGW64 /d/Code/GaoKeYong/RPC/livecdn/common/atomic (master)
$ git commit -m "common atomic"
[master daa9ef9] common atomic
78 files changed, 4623 insertions(+), 1 deletion(-)
delete mode 160000 common/atomic
create mode 100644 common/atomic/.codecov.yml
create mode 100644 common/atomic/.gitignore
create mode 100644 common/atomic/CHANGELOG.md
create mode 100644 common/atomic/LICENSE.txt
create mode 100644 common/atomic/Makefile
create mode 100644 common/atomic/README.md
create mode 100644 common/atomic/assert_test.go
create mode 100644 common/atomic/bool.go
create mode 100644 common/atomic/bool_ext.go
create mode 100644 common/atomic/bool_test.go
create mode 100644 common/atomic/doc.go
create mode 100644 common/atomic/duration.go
create mode 100644 common/atomic/duration_ext.go
create mode 100644 common/atomic/duration_test.go
create mode 100644 common/atomic/error.go
create mode 100644 common/atomic/error_ext.go
create mode 100644 common/atomic/error_test.go
create mode 100644 common/atomic/example_test.go
create mode 100644 common/atomic/float64.go
create mode 100644 common/atomic/float64_ext.go
create mode 100644 common/atomic/float64_test.go
create mode 100644 common/atomic/gen.go
create mode 100644 common/atomic/go.mod
create mode 100644 common/atomic/go.sum
create mode 100644 common/atomic/int32.go
create mode 100644 common/atomic/int32_test.go
create mode 100644 common/atomic/int64.go
create mode 100644 common/atomic/int64_test.go
create mode 100644 common/atomic/internal/gen-atomicint/main.go
create mode 100644 common/atomic/internal/gen-atomicwrapper/main.go
create mode 100644 common/atomic/nocmp.go
create mode 100644 common/atomic/nocmp_test.go
create mode 100644 common/atomic/origin.git/HEAD
create mode 100644 common/atomic/origin.git/config
create mode 100644 common/atomic/origin.git/description
create mode 100644 common/atomic/origin.git/hooks/applypatch-msg.sample
create mode 100644 common/atomic/origin.git/hooks/commit-msg.sample
create mode 100644 common/atomic/origin.git/hooks/fsmonitor-watchman.sample
create mode 100644 common/atomic/origin.git/hooks/post-update.sample
create mode 100644 common/atomic/origin.git/hooks/pre-applypatch.sample
create mode 100644 common/atomic/origin.git/hooks/pre-commit.sample
create mode 100644 common/atomic/origin.git/hooks/pre-merge-commit.sample
create mode 100644 common/atomic/origin.git/hooks/pre-push.sample
create mode 100644 common/atomic/origin.git/hooks/pre-rebase.sample
create mode 100644 common/atomic/origin.git/hooks/pre-receive.sample
create mode 100644 common/atomic/origin.git/hooks/prepare-commit-msg.sample
create mode 100644 common/atomic/origin.git/hooks/push-to-checkout.sample
create mode 100644 common/atomic/origin.git/hooks/update.sample
create mode 100644 common/atomic/origin.git/index
create mode 100644 common/atomic/origin.git/info/exclude
create mode 100644 common/atomic/origin.git/logs/HEAD
create mode 100644 common/atomic/origin.git/logs/refs/remotes/origin/HEAD
create mode 100644 common/atomic/origin.git/objects/pack/pack-e305082472f87d5ad325142e07ec08ac8bf53d02.idx
create mode 100644 common/atomic/origin.git/objects/pack/pack-e305082472f87d5ad325142e07ec08ac8bf53d02.pack
create mode 100644 common/atomic/origin.git/packed-refs
create mode 100644 common/atomic/origin.git/refs/remotes/origin/HEAD
create mode 100644 common/atomic/stress_test.go
create mode 100644 common/atomic/string.go
create mode 100644 common/atomic/string_ext.go
create mode 100644 common/atomic/string_test.go
create mode 100644 common/atomic/time.go
create mode 100644 common/atomic/time_ext.go
create mode 100644 common/atomic/time_test.go
create mode 100644 common/atomic/tools/go.mod
create mode 100644 common/atomic/tools/go.sum
create mode 100644 common/atomic/tools/tools.go
create mode 100644 common/atomic/uint32.go
create mode 100644 common/atomic/uint32_test.go
create mode 100644 common/atomic/uint64.go
create mode 100644 common/atomic/uint64_test.go
create mode 100644 common/atomic/uintptr.go
create mode 100644 common/atomic/uintptr_test.go
create mode 100644 common/atomic/unsafe_pointer.go
create mode 100644 common/atomic/unsafe_pointer_test.go
create mode 100644 common/atomic/value.go
create mode 100644 common/atomic/value_test.go
create mode 100644 core/agent/registry/service.go
zhangbin@LAPTOP-F1POBCSR MINGW64 /d/Code/GaoKeYong/RPC/livecdn/common/atomic (master)
$ git push origin master
Enumerating objects: 103, done.
Counting objects: 100% (103/103), done.
Delta compression using up to 8 threads
Compressing objects: 100% (85/85), done.
Writing objects: 100% (99/99), 208.94 KiB | 7.74 MiB/s, done.
Total 99 (delta 38), reused 0 (delta 0), pack-reused 0
remote: Powered by GITEE.COM [GNK-6.1]
To gitee.com:ixiaomo/test_-livecdn_-zbtt.git
87ef9e0..daa9ef9 master -> master
zhangbin@LAPTOP-F1POBCSR MINGW64 /d/Code/GaoKeYong/RPC/livecdn/common/atomic (master)
$