clone的方式
https://blog.csdn.net/zhang_jun_xiang/article/details/50372560
init方式
第一步
git init
git add .
Git remote add origin XXXX
git commit -m "init"
Git pull origin master
可能遇見錯(cuò)誤
fatal: Couldn't find remote ref master
說白了就是這個(gè)項(xiàng)目還沒有文件寂诱,空的呵晨,直接把本地修改的上傳就可以了愧捕,不需要拉了
Git push -u origin master
可能遇見的錯(cuò)誤:
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
? ? git push --set-upstream origin master
Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
解決辦法:
https://www.cnblogs.com/sober-orange/p/git-token-push.html
其他Git 常用命令:
http://www.reibang.com/p/acda1816a23e
查看遠(yuǎn)端倉庫
刪除遠(yuǎn)端倉庫
修改遠(yuǎn)程倉庫
https://jingyan.baidu.com/article/642c9d345b390b644b46f751.html
git remote -v git remote rm origin
git remote add origin git@192.168.9.99:JZMobile/MoocXuetang.git
git fetch
git push origin feature-new-dev