| Files | Last commit | Last update |
|---|---|---|
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago | ||
| 9 months ago |
命令行指引
以下是一些常用操作的 Git 命令,你可以参照这些命令在电脑本地进行对应操作
Git 全局设置
git config --global user.name "qq_51142828"
git config --global user.email "qq_51142828@noreply.gitcode.com"
创建一个新仓库
git clone https://gitcode.com/qq_51142828/myonlypro.git
cd myonlypro
echo "# myonlypro" >> README.md
git add README.md
git commit -m "add README"
git branch -m main
git push -u origin main
推送现有的文件
cd existing_folder
git init
git remote add origin https://gitcode.com/qq_51142828/myonlypro.git
git add .
git commit -m "Initial commit"
git branch -m main
git push -u origin main
推送现有的 Git 仓库
cd existing_repo
git remote rename origin old-origin
git remote add origin https://gitcode.com/qq_51142828/myonlypro.git
git push -u origin --all
git push -u origin --tags