Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Git delete files     - Build RubyMine + Ruby On Rails + MySQL development environment under Windows (Server)

- secureCRT remote login Linux must first open the connection protocol (Linux)

- Linux batch copy data script (Linux)

- How to clear the DNS query cache under Linux / Unix / Mac (Linux)

- Oracle 11g Export guide problem not an empty table (Database)

- Introduces Linux kernel compilation system and compiler installation (Linux)

- Transplant spider to MySQL 5.6 (Database)

- Use Ansible to bulk manage remote servers (Server)

- To_explore Linux system boot process (Linux)

- Linux network monitoring strategy (Linux)

- Linux system security infrastructure Highlights (Linux)

- Installation and configuration of Hadoop under Linux (Server)

- VMware 8 installation configuration Win7, CentOS-7 Wizard (Linux)

- Linux user login ban (Linux)

- MySQL Error Code Complete (Database)

- CentOS 6 Install Linux kernel source (Linux)

- The formatted Linux hard drive and mount (Linux)

- Installed FFmpeg 2.6.3 on Ubuntu / Debian / Fedora system (Linux)

- Mass data storage application of MongoDB database (Database)

- Java data structures - order linear form of table ArrayList (Programming)

 
         
  Git delete files
     
  Add Date : 2018-11-21      
         
         
         
  Delete files require use Git Git rm command to achieve, finally git commit

Note that directly after rm command to delete is not possible, you can use git status command to try, the effect is shown in the lower (create test file demonstrates the difference between git rm and rm's):

19: 54: 51linuxhost @ ~ / Documents / git / test >> vi test
19: 55: 07linuxhost @ ~ / Documents / git / test >> ll
total 16
-rw-rw-r--. 1 linuxhost wang 2007 Apr 18 07:02 getZhihuDaily.py
-rw-rw-r--. 1 linuxhost wang 22 Apr 18 07:02 README.md
-rw-rw-r--. 1 linuxhost wang 5 Apr 30 19:55 test
drwxrwxr-x. 7 linuxhost wang 86 Apr 20 06:08 vim-colors-solarized
-rw-rw-r--. 1 linuxhost wang 1233 Apr 30 19:47 vimrc
19: 55: 09linuxhost @ ~ / Documents / git / test >> git add test
 19: 55: 15linuxhost @ ~ / Documents / git / test >> git commit -m "test"
 [Master 710da9d] test
 1 file changed, 1 insertion (+)
 create mode 100644 test
 19: 55: 24linuxhost @ ~ / Documents / git / test >> ls
 getZhihuDaily.py README.md test vim-colors-solarized vimrc
 19: 55: 26linuxhost @ ~ / Documents / git / test >> git status
 # On branch master
 # Your branch is ahead of 'origin / master' by 1 commit.
 # (Use "git push" to publish your local commits)
 #
 # Untracked files:
 # (Use "git add ..." to include in what will be committed)
 #
 # Vim-colors-solarized /
 nothing added to commit but untracked files present (use "git add" to track)
 19: 55: 35linuxhost @ ~ / Documents / git / test >> rm test
 19: 56: 30linuxhost @ ~ / Documents / git / test >> git status
 # On branch master
 # Your branch is ahead of 'origin / master' by 1 commit.
 # (Use "git push" to publish your local commits)
 #
 # Changes not staged for commit:
 # (Use "git add / rm ..." to update what will be committed)
 # (Use "git checkout - ..." to discard changes in working directory)
 #
 # Deleted: test
 #
 # Untracked files:
 # (Use "git add ..." to include in what will be committed)
 #
 # Vim-colors-solarized /
 no changes added to commit (use "git add" and / or "git commit -a")
 19: 56: 33linuxhost @ ~ / Documents / git / test >> git rm test
 rm 'test'
 19: 56: 41linuxhost @ ~ / Documents / git / test >> git status
 # On branch master
 # Your branch is ahead of 'origin / master' by 1 commit.
 # (Use "git push" to publish your local commits)
 #
 # Changes to be committed:
 # (Use "git reset HEAD ..." to unstage)
 #
 # Deleted: test
 #
 # Untracked files:
 # (Use "git add ..." to include in what will be committed)
 #
 # Vim-colors-solarized /
 19: 56: 47linuxhost @ ~ / Documents / git / test >> git commit -m "rm test"
 [Master 2953ea2] rm test
  1 file changed, 1 deletion (-)
  delete mode 100644 test
 19: 57: 00linuxhost @ ~ / Documents / git / test >> git status
 # On branch master
 # Your branch is ahead of 'origin / master' by 2 commits.
 # (Use "git push" to publish your local commits)
 #
 # Untracked files:
 # (Use "git add ..." to include in what will be committed)
 #
 # Vim-colors-solarized /
 nothing added to commit but untracked files present (use "git add" to track)
     
         
         
         
  More:      
 
- Profile Linux users login shell and login to read (Linux)
- On the PC goes heavy security watch your startup items (Linux)
- Introduction to Linux Shell (Programming)
- Setup Qt development environment under Linux (Linux)
- Revive Adserver ad server installation on Ubuntu 15.04 / CentOS7 (Server)
- OpenDaylight Helium version installed (Linux)
- Graphic Git (Linux)
- OpenSSH server configuration file for each Common Definition (Server)
- Linux / Unix: chroot command examples to explain (Linux)
- How to create a someone project on github (Linux)
- Unable to solve the official version of Android Studio online update problem (Linux)
- CentOS 6.x and CentOS7 installation RPMforge (Linux)
- Ubuntu 14.04 LTS 64-bit install GNS3 1.3.7 (Linux)
- ARM platform compiler installation Golang (Linux)
- MySQL High Availability plan several options (Database)
- Java by Spy Memcached to cache data (Programming)
- Upgrade installation manual CentOS6.5 GCC4.8.2 (Linux)
- Change CentOS 7 NIC name eno16777736 to eth0 (Linux)
- Java developers question (Programming)
- 30 Practical Linux system administrators will learn the command (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.