-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #306 from khs1994/master
Release v0.9.0
- Loading branch information
Showing
9 changed files
with
53 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,19 @@ | |
|
||
```bash | ||
$ git clone [email protected]:docker_user/docker_practice.git | ||
|
||
$ cd docker_practice | ||
$ git config user.name "yourname" | ||
$ git config user.email "your email" | ||
``` | ||
|
||
修改代码后提交,并推送到自己的仓库,注意修改提交消息为对应 Issue 号和描述。 | ||
|
||
```bash | ||
# Update the content | ||
|
||
$ git commit -a -s | ||
|
||
# In commit msg dialog, add content like "Fix issue #235: describe ur change" | ||
|
||
$ git push | ||
``` | ||
|
||
|
@@ -26,9 +28,11 @@ $ git push | |
|
||
```bash | ||
$ git remote add upstream https://github.com/yeasy/docker_practice | ||
|
||
$ git fetch upstream | ||
$ git checkout master | ||
|
||
$ git rebase upstream/master | ||
|
||
$ git push -f origin master | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
if [ -f offline ];then echo "请在项目根目录执行 $0"; exit 1; fi | ||
|
||
command -v docker-compose > /dev/null 2>&1 | ||
|
||
if [ $? != 0 ];then echo "请安装 docker-compose"; exit 1; fi | ||
|
||
if [ "$1" = update ];then | ||
status=`git status -s` | ||
if [ -z "$status" ];then | ||
git fetch --depth=1 origin master | ||
git reset --hard origin/master | ||
else | ||
echo "您已修改项目,请提交或恢复原状!" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
docker-compose up server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters