如何将本地项目上传到ac git 云端

本地(git bash)

1 git 全局设置

复制代码
git config --global user.name xxx名字   
git config --global user.email xxx@xxx.com邮箱  

2 git 仓库初始化

复制代码
git init    // 将当前目录配置成git仓库,信息记录在隐藏的.git文件夹中

云端(ac git)

  • 新建一个项目,名字要和本地要上传文件夹名称相同
  • 添加本地公钥

本地(git bash)

复制代码
git remote add origin git@git.acwing.com:xxx/XXX.git    

git add .   

git commit -m "给自己看的备注信息"  

git push -u origin master
相关推荐
今日无bug1 天前
Git 提交:用全栈技术打造智能 Commit Message 生成器
git·全栈
明月_清风1 天前
拒绝盲目 Git:VS Code 神级插件 GitLens 的 9 个进效杀手锏
前端·git
goodspeed4 天前
Git Worktree:多分支并行开发的利器
git·github
雮尘5 天前
让 AI Agent 高效并行开发的命令-git worktree
人工智能·git·agent
南果梨6 天前
OpenClaw 完整教程!从安装到使用(官方脚本版)
前端·git·开源
Selicens7 天前
git批量删除本地多余分支
前端·git·后端
闲云一鹤8 天前
Git LFS 扫盲教程 - 你不会还在用 Git 管理大文件吧?
前端·git·前端工程化
vibecoding日记11 天前
为什么我就想要「线性历史 + Signed Commits」,GitHub 却把我当猴耍 🤬🎙️
git·编程工具
程序员小崔日记11 天前
如何将代码轻松上传到 Gitee?Git 使用全攻略!
git·gitee·上传