1. 程式人生 > >git首次提交程式碼

git首次提交程式碼

git init

git add .

git commit -m "首次提交"

git remote add origin https://git.oschina.net/xxx/maple.git

錯誤:There is no tracking information for the current branch. 解決:

錯誤:fatal: refusing to merge unrelated histories   解決:git pull origin master --allow-unrelated-histories

git push --set-upstream origin master