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