Loading... # 如果没有公钥的话,先用 ssh-keygen -t rsa 回车两下自动生成 # 初始化本地目录 cd /d/sharefile/xxx git init git config --global user.email "xxx@xxx.cn" git config --global user.name "xxx" # 添加本地目录与远程路径的关系 git remote add origin git@codeup.aliyun.com:5f87a80c93de782518722ff8/embedded/TG7100C-ZCY.git git pull # 上传本地所有文件,除了.xxx等文件 git add * git commit -m "commit @20231103 by xxx to master2.0" git push # 提交一个文件 echo 111 > 1.txt git status git add 1.txt git commit -m "test for upload 1.txt to master2.0" git pull # 如果是提交很多文件 git add * 最后修改:2023 年 11 月 03 日 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏