Version management tool Git learning

  • What is the role of version management tool Git?

   1. Backup files

   2. Record history

   3. Go back in time

   4. Multi-terminal synchronization

   5. Teamwork

  • History of version management tools?

    1. CSV 1985 centralized -- "2, SVN 2000 centralized --" 3, git 2005 distributed 4, -- "github 2008 hosting website

    2. What is the difference between centralized and distributed? Centralization requires a central server to place the latest files. If there is no Internet connection, there is no way to submit and view previous records.

The distribution is different. Everyone who owns the repository can submit, view records and delete operations without connecting to the Internet, which is much more efficient.

   3. What is the difference between Git and github? git is a version management tool. github is a website. For detailed differences, please refer to: Difference and Introduction between Git and github .

  • Git download and installation

    1. Install the Git environment Windows github client  download address . The github client download package for Windows 64-bit can be downloaded here

    2. Register your own Github account. address

  • Check out projects and submit projects under window

   Select the project you want to check out on github and select clone in desktop

  • How to resolve conflicts
  • How to create a version number
        Go to the project home page and click releases


select create a new relaese


Fill in the necessary information and click publish release to publish.

  • How to branch development
  • Some experience in multiplayer cooperation

       Use more clients and tools, and less command line, unless you are developing on linux.

       Before each submission, diff your own code to avoid submitting the wrong code. ( See what changes have been made to your code after modification )

       Before you get home from get off work, organize your workspace. (Submit on the day to be submitted, delete unnecessary ones to reduce the risk of code loss)

       Parallel projects, using branch development.

       When encountering a conflict, figure out the cause of the conflict, and don't discard other people's code at will.

        After the product is released, remember to tag it to facilitate branching and bug fixing in the future

        

    



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325378045&siteId=291194637