-
Notifications
You must be signed in to change notification settings - Fork 1
A04 Process
Freud, Kang edited this page May 31, 2018
·
7 revisions
Click the 'fork' button.

Then you will find that you have a personal forked project


$ git clone https://github.com/luoyan35714/TrainingBackend.git
Cloning into 'TrainingBackend'...
remote: Counting objects: 141, done.
remote: Compressing objects: 100% (79/79), done.
remote: Total 141 (delta 25), reused 134 (delta 23), pack-reused 0
Receiving objects: 100% (141/141), 64.26 KiB | 0 bytes/s, done.
Resolving deltas: 100% (25/25), done.$ cd TrainingBackend/
$ git remote -v
origin https://github.com/luoyan35714/TrainingBackend.git (fetch)
origin https://github.com/luoyan35714/TrainingBackend.git (push)
$ git remote add up_stream https://github.com/AC-MicroServiceClub/TrainingBackend.git
$ git remote -v
origin https://github.com/luoyan35714/TrainingBackend.git (fetch)
origin https://github.com/luoyan35714/TrainingBackend.git (push)
up_stream https://github.com/AC-MicroServiceClub/TrainingBackend.git (fetch)
up_stream https://github.com/AC-MicroServiceClub/TrainingBackend.git (push)
$ git pull up_stream master
From https://github.com/AC-MicroServiceClub/TrainingBackend
* branch master -> FETCH_HEAD
* [new branch] master -> up_stream/master
Already up-to-date.$ git checkout -b feature/showcase-example
Switched to a new branch 'feature/showcase-example'Changing the content in file system or IDE
$ git add .
$ git commit -a -m "input your comments here"
[feature/showcase-example 9c46232] input your comments here
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 showcase.md$ git pull up_stream master
From https://github.com/AC-MicroServiceClub/TrainingBackend
* branch master -> FETCH_HEAD
Already up-to-date.
$ git merge master
Already up-to-date.$ git push origin feature/showcase-example
fatal: HttpRequestException encountered.
An error occurred while sending the request.
Username for 'https://github.com': your_user_name
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 284 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 1 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/luoyan35714/TrainingBackend.git
* [new branch] feature/showcase-example -> feature/showcase-exampleCreate a pull request.

Select the branch which you want to merge at the right side, the branch which you want to merge into at the left side.

Add some comments on your pull request to let the reviewer know what you have done.

Then buy yourself a coffee and waiting for the administrator review and merge your pull request.

-
Official document : 《Git pro》
-
Online tutorial : Git教程
-
Video Tutorial : (链接: https://pan.baidu.com/s/16fTDLXgo_B6wg7p5kR5vrQ 密码: c14y)