Loading... # 一、基础操作 ## 1.1初始化 ```bash git config --global user.name "lishi" git config --global user.email "lishi0105@163.com" ssh-keygen -t rsa -C "lishi0105@163.com" ``` ## 1.2 已有工程加入远程仓库 ```bash cd existing_folderbuildbuilnb git init git remote add origin **** git add . git commit -m "Initial commit" git push -u origin master ``` ## 1.3 打tag ```bash git tag -a v0.1 -m "version 1.4" git push -u origin --tags # 向所有分支提交 git push -u origin --all ``` 最后修改:2025 年 12 月 15 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏