cd to local folder , first init its as git
git init
add all to version control
git add .
do a local commit first
git commit -m 'init commit'
link to remote git repo
git remote add origin https://github.com/*******.git
do a pull to sync tow repo
git pull origin master --allow-unrelated-histories
push local to remote
git push -u origin master
本文由 Ivan Dong 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Jul 7, 2023 at 04:37 am