1.gitignore fileIn Git, if you want to ignore a file and not commit the file to the repository, you can use the method that modifies the. gitignore file. Each row of this file holds a matching rule for example:# This is a comment – will be ignored by Git*.A # ignores all files ending with. A!LIB.A # but except LIB.A/todo # simply ignores the TODO file under the project root directory, excluding Subdir/todob
1. Overview.
Unlike CVs and Svn, git is a distributed source code management tool. The Linux kernel code is managed by git. It is very strong and fast. Its direct benefits include:1. the initialization of dummies will be finished, git init, git commit-. For anyone who writes two lines of code to the code management too
A few important conceptsFirst, define several concepts:
WorkPlace: Work Area
Index: Staging Area
Repository: Local Warehouse/Repository
Remote: Repository
When cloning a project locally on a remote (such as GitHub) (assuming the project is named Gittest), you will see a directory named Gittest on the local directory with the Project code and a directory named . Git. What is a workspace, except for the .
Git is a good version management tool. Now I am working on a simple application development and want to use git for management. After Google's Configuration documentation, I still suffered more than N setbacks. Some documents are of low quality, which wastes a lot of time ......
Well, let's get started:
Install necessary git tools
# Apt-get install
Git Study Notes (1), Git Study Notes (
Version Control System Overview
A version control system is a system that records changes in the content of several files for future reference to specific version revisions. The system can not only control the version of text files of software source code, but also control the version of any other types of files. With the version control system, we can trace a file bac
First, understand a few basic concepts:
Origin: Default remote version library;
Master: Default Development Branch;
(1) Git log
View the Submit log. will show up every time you submit. As shown in figure:
。
(2) Git log--pretty=oneline
You can use this command if you feel that the output is too much. The information is displayed on one line. As shown in figure:
。
(3)
Build and use Git servers, and build and use Git servers
Git is a distributed version manager with powerful functions. It was initially developed by Linus. Its version is managed locally and does not need to download the version from the central server as SVN does.
Install git in linux. You can configure Yum and insta
Git creates repository commands and usage, git Repository
Git init
Git uses the git init command to initialize a Git repository. Many Git commands need to be run in the
Original article: http://www.tech126.com/git-fetch-pull/Git obtains the latest version from a remote Branch to a local machine with the following two commands:
1. Git
Fetch: equivalent to obtaining the latest version from a remote device to a local device.
git fetch origin mastergit log -p master..origin/mastergit mer
Git: basic usage, git usage
A few simple operations allow you to use git to upload files on the terminal.
1. clone a projectIn work, the common scenario is that the remote database has been created. You need to pull down the code and work together for development. All operations in this document are performed on the terminal.// Clone a local databaseGit clone you
The output of Git diff is not the same under the action of different parameters. After understanding the workspace in Git, the latest version of staging area and the repository (current branch) is three different tree directories, which is a good understanding of Git diff's magical behavior.Directory tree browsing for workspaces, staging area, and repositoriesIs
Original: http://www.tech126.com/git-fetch-pull/There are 2 commands in git that get the latest version from the remote branch to the Local:1. Git fetch: the equivalent of getting the latest version from remote to local, not automatically merge-P Master: origin/Mastergit Merge Origin/masterThe meaning of the above command:First download the latest version from th
The premise of this summary is that a git server has been built and connected through the SSH protocol. For more information, see RHEL git server setup, WindowsXP git server setup, and git server usage basics. This article uses the GIT-2012-01-11 under the rhel5.5 system, th
Git revert-N INDEX
Differences between git revert and git Reset1. Git revert is the commit before rolling back and forth with a new commit. Git reset is to delete the specified commit directly.2. In the rollback operation, the effect is similar. However, there are differe
Git operations in the white eyes, git operations in the white eyes
During git's learning process, many detours have taken place, and now we have a preliminary understanding of git.
The command I used in the project:
1. git clone ****** Note: *** indicates the Project address on GitLab. The meaning of this sentence
1, (first into the project folder) by command git init to turn this directory into a repository that git can manageGit init2. Add the file to the repository, using the command git Add. Add to staging area inside, don't forget the decimal point ".", meaning to add all the files under the foldergit Add.3. Use the command git
installation of GitThe simplest way is to install git directly with git installer (download a git installler from the GIT website and install it), with your own git on your Mac, probably with a lower versionThe following shows the Apple built-in
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.