Git 全局设置:

git config --global user.name "xxxx" 
git config --global user.email "123456789@qq.com"

创建 git 仓库:

mkdir wap
cd wap
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://git.oschina.net/name/package.git
git push -u origin master
已有项目?

cd existing_git_repo
git remote add origin https://git.oschina.net/name/package.git
git push -u origin --all
// git pull origin master --allow-unrelated-histories // git push -u origin master

 

相关文章:

  • 2021-08-04
  • 2021-07-16
  • 2021-10-18
  • 2021-06-30
  • 2022-01-10
猜你喜欢
  • 2021-04-28
  • 2021-11-23
  • 2021-10-02
  • 2021-10-08
  • 2021-12-29
  • 2021-12-29
  • 2021-10-15
相关资源
相似解决方案