feat: 初始化

This commit is contained in:
杭城小刘
2018-09-11 10:11:39 +08:00
committed by 杭城小刘
commit 8e5d2c9e7f
264 changed files with 12082 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
### git常见使用
```
http://blog.csdn.net/wirelessqa/article/details/20153689
```
1. git init
2. git add .
3. git commit -am "\#\#\#"
4. git remote add origin git@xx.xx.xx.xx:repos/xxx/xxx/xxx.git
5. git push origin 本地分支:远程分支
fatal: refusing to merge unrelated histories
决办法git pull origin master --allow-unrelated-histories
### 创建新版本
* 从现有的分支创建新分支
* git checkout -b dev
* 将新创建的分支提交到远端
* git push origin dev
* 提交代码
* git add .
* git commit -m 'add a new branch named dev'
* git pull origin dev
* git push origin dev