Added new folder and files
parent
ccde5f1913
commit
00c39baac8
Binary file not shown.
After Width: | Height: | Size: 118 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
|
@ -1,6 +1,6 @@
|
|||
### 1.Linux根文件系统
|
||||
|
||||

|
||||

|
||||
|
||||
- /bin
|
||||
是binary的缩写,这个目录存放着最经常使用的命令,通过上方桌面可以看到bin文件夹有个箭头,是链接到 /usr/bin下,相当于快捷方式,进入/bin和/usr/bin下是一模一样的。
|
||||
|
|
|
@ -24,24 +24,44 @@
|
|||
|
||||
``` $ git init ```
|
||||
|
||||

|
||||

|
||||
|
||||
发现在根目录中出现了一个 **.git** 文件,表明此项目已被git管理。
|
||||
|
||||
2.通过` git clone "仓库链接"`与远程仓库进行连接:
|
||||
|
||||

|
||||

|
||||
|
||||
3. 连接成功后,添加项目到暂存区,并提交项目到本地仓库,中间可以使用 **git status** 命令查看文件状态:
|
||||
3. 连接成功后,添加项目到暂存区,并提交项目到本地仓库,中间可以使用 **git status** 命令查看文件状态:
|
||||
|
||||
当使用用` git status` 查看状态显示“没有需要提交的,工作树干净”时,就说明项目已经全部提交至本地仓库。
|
||||
|
||||
4. 使用命令 `git checkout -b dev` 创建dev分支并切换到该分支下,在分支上进行操作;在这之前或之后都可以使用命令 `git branch` 查看仓库的分支都有哪些
|
||||
4. 使用命令 `git checkout -b dev` 创建dev分支并切换到该分支下,在分支上进行操作;在这之前或之后都可以使用命令 `git branch` 查看仓库的分支都有哪些
|
||||
|
||||
5. 操作这么多命令后,可能已经断开了与远程的连接,使用命令 `git remote -v`查看,如果为空,则使用 `git remote add origin 链接` 再次与远程仓库进行连接
|
||||
5. 操作这么多命令后,可能已经断开了与远程的连接,使用命令 `git remote -v`查看,如果为空,则使用 `git remote add origin 链接` 再次与远程仓库进行连接
|
||||
|
||||
出现如上图所示,则重新连接成功!
|
||||
|
||||
6. 把master分支合并到dev分支,进行add和commit,最后push到远程
|
||||
|
||||
7. 查看项目是否上传成功。
|
||||
7. 查看项目是否上传成功。
|
||||
|
||||
### <font color="red">beyond compare 解决冲突</font>
|
||||
|
||||
1. 安装beyond compare
|
||||
|
||||
2. 在git 仓库中配置
|
||||
|
||||
```
|
||||
git config --local merge.tool bc4
|
||||
git config --local mergetool.path 软件安装目录
|
||||
git config --local mergetool.keepBackup false
|
||||
```
|
||||
|
||||
3. 应用bc 解决冲突
|
||||
|
||||
```
|
||||
git mergetool
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue