简体   繁体   中英

How to merge code in github?

I am new to github.

I want to share code with my teammates.

Suppose i have a js file having code {previous code};
i pushed this to github remote.

now my friend pulled the remote repository and made some changes .
let it be {previous code} + {new code 1} .

Now i made some changes. let {previous code} + {new code 2} . now how to get this all code at one place by merging. ie {previous code} + {new code 1} + {new code 2}

more info: we are using webstorm IDE.

If you work on the same branch you simply have to pull the code from Github.
If you use different branches, you will need to merge your changes. You can do it locally with Webstorm.


在此处输入图片说明


Here is a screenshot where to find the git command under webstorm.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM