Brick 4 Assessment

Source: Internet
Author: User

Yesterday, I was greedy and did not make any moves. I gave myself an excuse.

I heard that today's assessment is about to take a short time, but git has been reading it for nearly a week. I think it should also be despised, NC, alas.

I do not complain, I do not complain, I move more bricks.

I sorted out the process and got familiar with it again.

I. preparation phase
Yum install Git-core
Git config -- global user. Name 'admin'
Git config -- global user. Email admin@gmail.com
Ssh-keygen-T RSA
Vim ~ /. Ssh/config

2. merge branches
Git clone git @ gitserver: Test. Git
CD Test
Git branch Admin

Git checkout Admin
Git Branch
Git branch-
Vim Test
Git diff
Git status
Git add Test
Git commit-m'test for exercise'
Git push origin admin: Admin
Git log
Git checkout master
Vim Test
Git pull origin Admin

Equivalent:
Git fetch Origin
Git merge Admin
Vim Test

3. Patch
[Programmer stage]
Git branch you
Git checkout you
VI patching. c
Git add patching. c
Git commit-M 'my patching'
Git format-patch-M Master
Cat 0001-patching.patch
Git checkout master
Git add 0001-patching.patch
Git commit-M 'my patching'
Git pull
Git push
[Manager stage]
Git pull
Git Branch New
Git am-Abort
Git am 0001-patching.patch
Git checkout master
Git merge new
VI patching. c

Do not patch this, refer to the summary of Senior brother and sister.

Don't create negative emotions, live a positive life, don't rush, take it slowly. Move bricks and tiles step by step. Good luck. You have to do it yourself.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.