Fedora10 use Git to manage version Configuration

Source: Internet
Author: User
Git is a very useful version management tool. It is very necessary to introduce a version control tool during development. Here we use Git to manage the version to be developed. Because there is no server, during local development, you can create a Git repository locally and manage the code. Because Git is installed by default when Fedora10 is installed, you only need to place the version we want to manage and use the Git command. first, in the Code directory to be developed, run the command: gitinit to create a Gi

Git is a very useful version management tool. It is very necessary to introduce a version control tool during development. Here we use Git to manage the version to be developed.

Because there is no server, during local development, you can create a Git repository locally and manage the code.

Because Git is installed by default when Fedora 10 is installed, you only need to place the version we want to manage and use the Git command.

1. First, run the following command in the Code directory to be developed:

Git init

Create a Git warehouse

2. Run the following command to add the desired code:

Git add.

3. Submit the add code to the local configuration library.

Git commit-s

In the pop-up document, write down the relevant instructions. Then wq is saved.

At this time, we have established the local version control of Git.

You can use git status to view modifications to the local version.

Git log view version Evolution

Git branch view branch

Git diff. view the modification point

Git checkout. Roll Back uncommitted changes

Git checkout-B creates a branch for testing, debugging, and other operations

Git branch-d xxx Delete xxx branch

Switch git branch xxx to xxx branch

And so on

Git tutorials:

GitHub tutorials graphic detailed http://www.linuxidc.com/Linux/2014-09/106230.htm

Git tag management details http://www.linuxidc.com/Linux/2014-09/106231.htm

Git branch management details http://www.linuxidc.com/Linux/2014-09/106232.htm

Git remote repository details http://www.linuxidc.com/Linux/2014-09/106233.htm

Git local Repository (Repository) Detailed description http://www.linuxidc.com/Linux/2014-09/106234.htm

Git server setup and Client installation http://www.linuxidc.com/Linux/2014-05/101830.htm

Git overview http://www.linuxidc.com/Linux/2014-05/101829.htm

Share practical GitHub tutorialsHttp://www.linuxidc.com/Linux/2014-04/100556.htm

Ubuntu Git server setup and user guide http://www.linuxidc.com/Linux/2015-07/120617.htm

Git details: Click here
Git: Click here

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2016-01/128027.htm

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.