Home git How to update the Git version of the branch to the last?

How to update the Git version of the branch to the last?

Author

Date

Category

I have Master and DeV branches, let us give us 2 developers and both are committed in the DEV branch, can I get the latest version of this branch constantly without shaking a spoke from the repository?


Answer 1, Authority 100%

There are teams that are just doing. Basic steps may be like.

  1. You need to configure a remote repository.

    $ Git Remote Add [ShortName] [URL]

  2. Get the latest changes

    $ Git Fetch [Remote-Name]

  3. If you have changed, make merge

  4. If not, you can simply make a rebase.

In order not to type commands, you can use for example totoisegit

Recommend to read the book on git

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions