一、本地创建git仓库并提交代码
- 1、本地创建git仓库
git init
- 2、本地代码提交
git add .
- 3、本地代码提交信息
git commit -m 'init'
二、添加远端仓库
git remote add origin git@xxxxx.git
三、更新远端代码
git pull origin master
四、本地代码推送到远端
git push -u origin master
一、本地创建git仓库并提交代码
git init
git add .
git commit -m 'init'
二、添加远端仓库
git remote add origin git@xxxxx.git
三、更新远端代码
git pull origin master
四、本地代码推送到远端
git push -u origin master