Getting a Git Repository (get the project git repository) One initializes the new warehouse in the working directory: Git init After initialization, a directory named. Git appears in the current directory, and all of the data and resources that git needs are stored in this d
Cute new note-git problem (error: object file. git/objects/* is empty...) solution and understanding of git version library files, gitobjects file is too large
Due to improper operations, a major problem occurs in the git version library, as shown below:
error: object file .git
write the code locally, only the latest version is saved. Therefore, if the SVN server fails, the previous version records may be lost.
Git adopts a distributed strategy. That is to say, Git not only stores records of different versions on the server, but also stores records on the local disks of each computer that uses Git, it also saves version record files. T
How to view hidden folders:If you don't see the. git directory, you need to make the hidden files visible. This is done by opening a terminal window and entering the following command:Defaults write Com.apple.finder appleshowallfiles TRUEIn order to restart the Finder app, enter:killall findersource code control tools-git
I.
I. BACKGROUND
When debugging code, every time through git upload to the server debugging, it is a very troublesome thing. So for some minor changes, I'm going to modify it directly on the server. After debugging successful, with Git reset and then back to the previous version, and then after the boss to remind, only to find the use of git checkout simpler, and do
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
Before you start using Git, you need to install it on your computer. Even if it is already installed, it is best to upgrade it to the latest version.You can install through the package or other installer, or download the source code to compile the installation.One, git installation 1. Installing on LinuxWe can install using the Basic Package management tool included with the release version, and if Fedora
functional, but it is only a pile of functions. during use, it cannot fully realize the convenience brought by the GUI. On the contrary, it makes people feel very complicated. When you place your mouse and click it, it is all about dealing with menus, away from git commands, git output prompts, and the truth.
Bash of msysgit is very easy to use. With the powerful alias function of
Git for detailed use, git for use1. Git Concept1.1 The Git library consists of three partsGit repository is that. the git directory stores the submitted document index content. Git can track the content of the documents it manages
Why use Git
Confucius once said, the name is a word shun shun the matter into.
Before we learn a new technology, figuring out why it's important to learn it, and why we want to learn about git, I use a if-else statement to tell you why:
if (you believe me) { I recommend you to study;} else if (admittedly, I am not a bull, you can not believe me, but you should believe in most people's choice)
that is cut out from the develop branch and merged back to the develop branch when the function is completed. It does not directly interact with the master branch.? Release branch: usually corresponds to an iteration. After all functions of a version are merged into the develop branch, a release branch is cut out from the develop branch. This branch does not add new requirements, so it can fix bugs and improve documents. Remember that after the code is published, it needs to be merged to the ma
Software development can not be separated from version control, the development of n years, the use of a lot of version control tools, from VSS (some people evaluate the tool against human design), to CVS,SVN have been used. But these tools are central, with the development of the Internet and technology, distributed version control tools are more and more popula
GitLinus Torvalds, a distributed version control tool, introduced Git-the stupid content tracker (silly content tracker)
1. Git background
Git was originally written by Linus Torvalds and used as a version control tool for Linux kernel development.
Git is different from common version control
[Git experience] git principles and basics, experience git principles
Principle: Distributed version control systems such as Git, Mercurial, Bazaar, and Darcs. The client does not only extract the latest version.
Instead, it completely mirrors the original code repository. In this way, any server that works collaborati
code from libraries such as CURL,ZLIB,OPENSSL,EXPAT,LIBICONV, so you need to install these dependent tools first.apt-get install curl-devel expat-devel gettext-devel openssl-devel zlib-develInstalling from source codeDownload the latest source code to the GIT official site, such as the current version of 1.7.4.4.Compiling the installation commandtar -zxf git-1.7
git Add. : He will monitor the status tree of the workspace and use it to submit all changes to the staging area, including file content modification (modified) and new files, but excluding deleted files.
Git add-u: He only monitors files that have been added (i.e., tracked file), and he submits the modified files to staging area. Add-u does not submit new files (untracked file). (
GitLinus Torvalds, a distributed version control tool, introduced Git-the stupid content tracker (silly content tracker)
1. Git background
Git was originally written by Linus Torvalds and used as a version control tool for Linux kernel development.
Git is different from common version control
you to install a third-party git tool. Although not installed can also be used, but VisualStudio in the integration of the features are relatively small (for the time being, is not enough), if you want to use other features, you need to be implemented through a third-party git tool.Installation method is relatively simple, directly follow the prompts to continue the next step, here is not more introduction
Configuration of the GIT environment on Phpstorm The total feeling is very simple, did not find that seemingly simple things waste me a lot of time. I looked it up on the Internet. There is no specific summary of the configuration of the GIT environment for phpstorm so I have a brief summary of my own process.Polygon is the step of my configuration environmentOne: Install the Phpstorm and set up your favori
Environment:
Git Sserver
IP: 192.168.40.128
Git Client
IP: 192.168.40.134
-----------------------------------------
Recommended reading:
Fedora downloads Git through Http Proxy
Install Git on Ubuntu Server
Create a Git repository on the server (Ubuntu)
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.