跳至主要內容

七、git常用功能

apzs...小于 1 分钟

七、git常用功能

7.1、提交到远程仓库

Git 全局设置:

git config --global user.name "无名氏"
git config --global user.email "[email protected]"

创建 git 仓库:

mkdir git-test
cd git-test
git init 
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:apzs/git-test.git
git push -u origin "master"

已有仓库?

cd existing_git_repo
git remote add origin [email protected]:apzs/git-test.git
git push -u origin "master"
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v3.0.0-alpha.8