Git Introduction
Git is a distributed version control system. The GIT client does not only extract the latest file snapshot, but completely mirrors the code repository. In this way, any server that works collaboratively can be recovered from a local
Oracle is not in the sudoers file. This incident will be reported solution: 1> enter the superuser mode. That is, enter "su-". The system will ask you to enter the superuser password and enter the password to enter the superuser mode. Www.2cto.com 2>
EPELEPEL software warehouse EPEL (http://fedoraproject.org/wiki/EPEL) is a program built by the Fedora community to provide high-quality software packages for RHEL and derivative releases such as CentOS and ScientificLinux. Install EPEL, just like
Http://forkhope.diandian.com/post/2012-10-04/40040973375
1. Use sudo apt-Get install Git-core to install git. At this time, this git may not be the latest version.
If you want to install the latest version of git, You need to compile and install the
1. Install git dameon
$ Sudo apt-Get install Git-Daemon-run
2. Set the repository directory
Modify/etc/SV/Git-daemon/run to configure the GIT tree directory and shared directory.
$ Vi etc/SV/Git-daemon/run #! /Bin/sh exec 2> & 1 echo 'git-daemon
[Java concurrent programming practice] -- "J. U. C": Condition, j. u. ccondition
Before reading Condition, let's take a look at the following example:
Factory type, used to store and retrieve goods:
Public class Depot {private int depotSize; // repository size private Lock lock; // exclusive lock public Depot () {depotSize = 0; Lock = new ReentrantLock ();} /*** warehouse receiving ** @ param value */public
P4 view mapping and its special characters
Three Views in P4: client views, Branch views, and label views.
Note:
1) if the view has multiple mappings for the same file, the subsequent ing overwrites the previous mapping.
2)-ing starting with-is used to exclude the mapping of files. It is generally used to exclude some subdirectories or files in some directories.
3) in client views, the frontend of mapping can be +, indicating the effect of superposition, which is different from g
Before looking at condition, let's take a look at the following example:A factory class used for storing and removing goods:public class Depot { private int depotsize; Warehouse size private lock lock; Exclusive lock public Depot () { depotsize = 0; lock = new Reentrantlock (); } /** * Commodity Storage * @param value * /public void put (int va
P4 submit the proposed process:
1. P4 Sync
2. Overwrite or change the local file
3. P4 Delete or direct delete obsolete files
4. P4 add: Add new files to Depot
5. P4 diff-se: View edited files
6. P4 Diff-se | P4-x-Edit: Put all the changed files as open for submit, and for files that are overwritten or not with P4 edit, this command is required to make the file open for easy submission7. P4 diff-sd: View deleted files (not deleted with P4 delete)
8. P
changelists-L... # display the modification notes for all files in the current directory19. P4 label dyoldfish_label # create the label dyoldfish_label and edit the label20. P4 tag-l dyoldfish_label... # add all files in the current directory to the label dyoldfish_label21. P4 changes... # changelist in the current directory22. P4 sync @ 10931 # Sync file @ changelist23. P4 sync ..... @ 10929 # Only sync localfile @ changelist24. P4 help revisions # view help on the file range
After the export
p4name is set): P4 configure show p4name;
2 P4 counter and counters
P4 counters displays a list of long-term variables used by perforce or related scripts. For example, change stores the latest changelist (including uncommitted pending changelist), Journal stores the journal name, and review stores the chagnelist as of the last review. For example:
P4 counters
Change = 92Job = 2Journal = 5Minclientmessage = Please use new version 2010.2.Monitor = 1Upgrade = 22
Counter can be u
//Warehouse3ClassDepot {4Privateint capacity;//Capacity of the Warehouse5Privateint size;//Actual number of warehouses67Public Depot (Intcapacity) {8This.capacity =capacity;9This.size = 0;10}1112PublicSynchronizedvoid Produce (IntVal) {13Try{14//Left means "the quantity you want to produce" (it is possible to produce too much, it needs more production)15int left =Val16while (Left > 0) {17//When inventory is full, wait for "consumer" consumer products.
A long time ago, I carefully understood the Repo and server principles out of curiosity, but today I suddenly forgot something, so I wanted to record it.Repo Mechanism
Repo is a software officially developed by google to manage Android projects. Let's take a look at the official description of the software.
Repo is a tool thatwe built on top of Git.
Rake is a program written in Ruby and we use rake to read the rakefile. And Rakefile contains defined tasks, each with a name, and some of the tasks it relies on, and a set of actions to perform. Now let's take a look at the rake in Rails. When you create a project using rails ' generate scripts, you automatically generate a Rakefile file in the root directory of your project to help you accomplish a lot of tasks, and we can also use a command to see what features are available and execute on th
Recently downloaded Opticks code compilation, with its own retrieve-dependencies.bat download dependent library, always prompt for missing modules.Analyzed the cause of the error, according to the command window prompt, manually download the following configuration file:Https://opticks.org/downloads/ivy-repo/opticks/opticks-deps/4.12.0/opticks-deps-ivy.xmlOpen the file to see the following:These are the dependent libraries required for Opticks compila
The school has been doing application layer development, considering the future employment problems, this decision to study the source code and drive, and compile. Did not expect to download the source of this step toss me a full two days, during the encounter a lot of problems, hey, recorded in this, hope that in the future, the source of the people do not take the unnecessary detours. In fact can be here http://zhu.im/Android/ download source code, but Google recommended to download with
/. cocoapods)Please note that ,. the folder repos under cocoapods. The repo here is the abbreviation of the repository. repos stores a collection of warehouses. here, the master is the official repository of cocoapods, which is stored in the specs directory of our so-called public database. It is a collection of podspec files submitted to the open-source library of cocoapods. its structure is as follows:The composition method is specName -- version -
1. Install Ruby, rails, mongrel, and apache2.2 download one-click Ruby install from the rubyforge website and run the installation program. Then Ruby and rubygems are installed. Run the command: Gem install rails-ygem install mongrel-ygem install mongrel_service-y. After rails and mongrel are installed, download apache2.2 for Windows from the Apache website. After running the installation program, apache2.2 is installed. 2. Start mongrel as a service to start mongrel_rails service: Install-N
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.