git 使用命令

1.Quick setup — if you’ve done this kind of thing before

https://github.com/littlevigra/django-urls-mgr

2.create a new repository on the command line

 
echo "# django-urls-mgr" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/littlevigra/django-urls-mgr.git
git push -u origin main

3.
push an existing repository from the command line
git remote add origin https://github.com/littlevigra/django-urls-mgr.git
git branch -M main
git push -u origin main
原文地址:https://www.cnblogs.com/hixiaowei/p/14130235.html