I. Teamwork

Collaboration within a team is really about this.

  1. Big A writes the project framework and pushes it to A remote repository like Github.
  2. Little brother 1 takes the project from the remote librarycloneTo their own local, you can do development, versioning, branch management, and so on.
  3. Little brother 1 was developed locally, sopushTo the remote library, the remote library is the latest code.
  4. Big A can do it nowpullClick remote code, and pull the latest code to your own local library, so that the two people’s local library and remote library code is synchronized.

2. Cross-team collaboration

Above team collaboration, everyone is on the team, with only one remote library. Since the project is on Github, everyone can see it. Now there’s another big guy B who thinks

The project can be better optimized, but B is not A member of A’s team. How can we cooperate with each other?

  1. Big B passedforkRemote library A has its own remote library B.
  2. Big B is pulling it from his own remote vaultcloneCode to a local library.
  3. Big guy B after a meal of operation, the written codepushGo to your own remote library B.
  4. At this point, Big B launchespull requestTell A to pull its own code.
  5. Big A is very cautious, naturally to big B submitted code review, in case it is A disguise big boss, to make trouble.
  6. Big guy A approved, confirmed that it is real big guy, rest assuredmergeGo to your own remote library A.
  7. Big A passespullOwn remote library A, update the local code.

Next, integrate Git based on Github operations and IDEA.