Hello git

Hello git

JiangWen Lv4

git起步

…在命令行上创建新的存储库
1
2
3
4
5
6
7
echo "# article-img" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:jiangwen5945/article-img.git
git push -u origin main
…从命令行推送现有存储库
1
2
3
git remote add origin git@github.com:jiangwen5945/article-img.git
git branch -M main
git push -u origin main
  • 标题: Hello git
  • 作者: JiangWen
  • 创建于 : 2022-09-28 11:45:00
  • 更新于 : 2024-06-26 03:34:12
  • 链接: https://blog.jiangwen.site/2022/09/28/Git/hello-git/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论
此页目录
Hello git