Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Git build a team development environment operating drills     - Use OpenSSL to generate a certificate detailed process (Linux)

- OpenDJ installed on RHEL6 (Linux)

- How to back up Debian system backupninja (Linux)

- Tomcat session clustering and server session (Server)

- Android system source code and compile the kernel source code (Programming)

- MySQL error: ERROR 1175: You are using safe update mode solution (Database)

- IntelliJ IDEA common list of shortcuts (Linux)

- CentOS 6.4 (64bit) install Python 2.7.5 (Linux)

- Linux under DB2SQL1024N A database connection does not exist. SQLS (Database)

- Installation GitLab appears ruby_block supervise_redis_sleep action run (Linux)

- Summary Linux bond of multi-interface load balancing (Linux)

- Five kinds of IO Model under Linux (Programming)

- Linux system with a firewall to prevent the DOS attack (Linux)

- Linux Tutorial Share: How to sudo command to define the PATH environment variable (Linux)

- CentOS7 installation hardware monitoring for Zabbix enterprise applications (Server)

- Linux port scanning (Linux)

- Nginx Beginner Guide (Server)

- Security: Unix operating system intrusion tracking Strikes Back (Linux)

- MySQL dual master configuration (Database)

- Go constructed using an interpreted language (Programming)

  Git build a team development environment operating drills
  Add Date : 2018-11-21      
  Analog create a remote git repository

1. First, create the following directory structure:

/ Users / hujh / Desktop / GitTest2 / GitServer / weibo

weibo is the project we want to create

2. Change directory

$ Cd / Users / hujh / Desktop / GitTest2 / GitServer / weibo

3. Establish blank code library (designed for team development)

$ Git init -bare

Normal is generally similar to the following results represent successful initialization empty warehouse

Initialized empty Git repository in / Users / hujh / Desktop / Git Walkthrough / GitServer / weibo /

Project manager initializes the local repository

1. Create a project manager the following directory structure:

/ Users / hujh / Desktop / GitTest2 / Manager

2. Change directory

$ Cd / Users / hujh / Desktop / GitTest2 / Manager / weibo

3. "clone" to the local code library

$ Git clone / Users / hujh / Desktop / GitTest2 / GitServer / weibo /

It prompts the following results:

Cloning into 'weibo' ...

warning: You appear to have cloned an empty repository.


Representative clones warehouse successfully, you can enter the directory through weibo

ls -la view the results as follows:

There is a .git directory, which is the repository of hidden directory.

4. Personal Configuration (because many people work together to demonstrate a machine, the daily development can be ignored)

$ Git config user.name manager

$ Git config user.email manager@163.com

5. Add .gitignore file which files are not included in the designated repository management

1) in the same directory .git directory and paste in the following command execution

echo -e "# Xcode


build /

* .pbxuser

* .mode1v3

* .mode2v3

* .perspectivev3


* .xccheckout

* .moved-Aside


* .hmap

* .ipa

* .xcuserstate

# CocoaPods


# We recommend against adding the Pods directory to your .gitignore. However

# You should judge for yourself, the pros and cons are mentioned at:

# Http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control


# Pods / "> .gitignore

2) by ls -la view, you can see a generated document .gitignore

3) Run the following command to add to the code base .gitignore

$ Git add .gitignore

  $ Git commit .gitignore -m "Add .gitignore Ignoring Files"

6. Create initialization program

Use Xcode to create a project in weibo directory, pay attention when we choose to save the address entered weibo directory, Create Git repository of gray tab programming.

After the preparation and revision of the code, select Source Control ---> Commit to submit our code:

Operating in the pop-up interface, with reference to FIG. Explanation:

I did not choose to automatically push the development of the project in order to save time, you can check this check is not here to tell you how to manually push: Select SourceControl -> push

Then click push

If the push is successful, it will display push successful, push to a remote repository on behalf of this success.

So far, the project manager initialization warehouse project is completed.

Jackie staff to continue its development projects

Create Employee jackie directory

/ Users / hujh / Desktop / GitTest2 / jackie

2. Go to the directory of employees jackie

cd / Users / hujh / Desktop / GitTest2 / jackie

3. "clone" to the local code library

$ Git clone / Users / hujh / Desktop / GitTest2 / GitServer / weibo /

You can see the project files in the directory jackie

Then you can develop a project.
- Spring MVC Exception Handling (Programming)
- How to install Kernel 4.0.2 on CentOS 7 (Linux)
- Getting Started with Linux system to learn: how to use tcpdump to capture TCP SYN, ACK and FIN packets (Linux)
- MySQL service failed to start thinking of settlement under CentOS7 (Database)
- Android engineers interview questions (Programming)
- Oracle EBS R12 for Linux installation (Database)
- sudoers file parsing (Linux)
- How to identify memory leaks in Java (Programming)
- Ubuntu dual-card system configuration method (Server)
- To install Xen in Ubuntu 12.04 (Linux)
- To execute the cp command prompt type skip folder under CentOS (Linux)
- Moosefs Distributed File System Configuration (Server)
- MySQL Slave synchronization problem solving (Database)
- Linux-- sub-volume compression and decompression (Linux)
- Zabbix API and PHP configuration (Server)
- Ubuntu install VMware Workstation 11 tutorials at 14.04 / 14.10 (Linux)
- How to upgrade Docker 1.6 on Fedora / CentOS (Server)
- To install Ganglia (Linux)
- Ubuntu Thunderbird 24.4.0 (Linux)
- Cygwin install Python MySQLdb (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.