经常使用mac和linux

这次使用window开发了一些小项目

废话不多说:

git init

git add .

git commit -m 'note'

git remote add origin 你的远程库地址 比如  git remote add origin https://github.com/nnaa/helloworld.git

如果写错了

git remote rm origin //删除origin
git remote add origin https://github.com/nana/demo.git //重新添加origin

每次要做同步

git pull --rebase origin master

git push -u origin master

强制:

git push -u origin master -f

 

相关文章:

  • 2021-08-25
  • 2021-09-12
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2021-08-25
  • 2021-08-18
  • 2022-12-23
猜你喜欢
  • 2021-05-21
  • 2022-01-22
  • 2021-04-01
  • 2022-03-09
  • 2022-01-30
  • 2022-12-23
相关资源
相似解决方案