1.创建要推送的本地库
传送门:https://blog.csdn.net/eax_xor_eax/article/details/88418319
2.和远程库使用相关的一些git指令
我的远程库的链接地址:https://github.com/xiaowaer/android_basic.git
2.1 git remove:给远程库起别名
xiaowaer@DESKTOP-CEPBMO3 MINGW64 /d/prefessional/Avanced/application_development/android/AndroidStudioProjects/andriod_basic (master)
$ git remote add android_basic https://github.com/xiaowaer/android_basic.git
#给远程库起别名
xiaowaer@DESKTOP-CEPBMO3 MINGW64 /d/prefessional/Avanced/application_development/android/AndroidStudioProjects/andriod_basic (master)
$ git remote -v
android_basic https://github.com/xiaowaer/android_basic.git (fetch)
android_basic https://github.com/xiaowaer/android_basic.git (push)
2.2 git push <远程库名> <分支名>:把本地库中的内容推送到远程库
git push android_basic master