Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Git Getting Started tutorial     - Debian 8.2.0 (Jessie) fast clean installation tutorial (Linux)

- Virt Related Command Summary (Linux)

- Via Twitter how open source library to be used anywhere Emoji emoticons (Linux)

- Setting CentOS firewall open port (Linux)

- systemctl Command Complete Guide (Linux)

- Common Linux system performance monitoring command (Linux)

- Linux install Maven and SVN client (Linux)

- Ubuntu 10.10 install Oracle 10g Installation Guide (Database)

- How to create a binary distribution with Bash (Linux)

- Fast Sort Algorithms (Programming)

- Oracle GoldenGate encryption (Database)

- CentOS / Linux restart active NIC connection paths / network configure error Error Resolution (Linux)

- Analysis of Java reflection mechanism (Programming)

- Talking about the implementation and the JVM garbage collection mechanism (Programming)

- Monitor log file (listener.log) (Database)

- Run Windows in FreeBSD bhyve (Linux)

- Django how to generate content in non-HTML formats (Programming)

- findmnt- Looking mounted file system (Linux)

- Reported too many open files Linux solutions (Server)

- Installation Docker FAQ on Ubuntu (Linux)

  Git Getting Started tutorial
  Add Date : 2018-11-21      
  In git so popular in the environment, if not point to git-depth research, I am embarrassed to say he is engaged in the front end. Let us into git

I. Daily backup job

Imagine if one day your hard drive suddenly broken, then the results of hard work on the hard drive is not able to survive? If this is not how annoying. How to prevent a disaster and not let a basket of eggs destroyed, let us into git, let the results of hard work be safeguarded.

Each part of the job done, I go through git add. Git commit and submit once, before work every day, I'll pass git push command will work my local git repository git push to the company server, executed as step 1. Because the company's servers and git git off-site data center to establish a mirror, so every time I push the implementation of the division, it will automatically trigger the internal server to the external network server mirroring, equivalent to executing the step 2.

II. Asynchronous work

There may be several people at the same time to develop a project, or a person on a different host for a project to be modified so that it will form an asynchronous work. Like I was at home and the company of a project to be modified

Step 3.4 shows how this works I'm at home, I passed the first step of the project 3 image library pulled local (home certainly must have LAN), and then after the modification, 4 work submitted to the home of the repository by step. Why do you want to reference home here repository it? Directly mirror repository not? Not really, because the mirror is a mirror image library, you can not write. Command Step 3 is also very simple to use git pull mirror master it. Step 4 is a command git push home.

III. Modify commit

Many people may, after filing, will find themselves commit typos or is not well understood. This time on the need to modify commit. Use git git commit --amend directly modify the submission page you can enter the description, where you can modify the description any time of submission.

IV. Eat regret medicine

If you submit a submission should not be a lot of pictures a.img, this time very simple git can delete this file submission using git rm --cached a.img, git commit --amend can be achieved

V. progress saved

If there is an urgent demand, we need to switch to a clean work area, or when a branch is another, how can we ensure that the work currently uncommitted been preserved, git provides a very simple way.

git stash save the current branch, git checkout new-branch switch to a new branch. Upon completion of the emergency needs use the following command to switch back to the original command and restore workspaces

git checkout origin-branch

git stash pop
- Java string intern constant pool resolution Introduction (Programming)
- C # compiler to achieve functional use in the runtime (Programming)
- Red Hat Enterprise Linux configuration VNC multi-user access methods (Linux)
- Linux kernel netpoll framework netconsole (Linux)
- MySQL database to open a remote connection method (Database)
- Linux process stack and process function stack frame (Linux)
- Several SQL Server data migration / Export Import Practice (Database)
- Squid proxy server (Server)
- Linux / Unix system-level IO (Linux)
- Linux, C programming language library file handling and preparation of Makefile (Programming)
- Ubuntu study notes and related problem solving (Linux)
- How Bluetooth turned off by default in Ubuntu 14.04 (Linux)
- Linux FAQ - How to fix tar:Exitingwith failure status due to previous errors (Linux)
- MyCAT log analysis (Database)
- Reported too many open files Linux solutions (Server)
- Ubuntu install driver manager Mint Driver Manager and Device Driver Manager (Linux)
- Learn to read the source code of vmstat (Linux)
- Linux system font color change (Linux)
- Node.js development environment deployment (Server)
- MySQL5.6.12 Waiting for commit lock lead to hang from the library housing problem analysis (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.