Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: commit

09 Feb

Commit All Changes in Git

Telling Git when you’ve added, deleted and renamed files gets tedious. Use this command and Git will look at the files in the current directory and work everything out for itself. The -z and -0 options prevent ill side-effects from filenames containing strange characters.


git-ls-files -d -m -o -z | xargs -0 git-update-index --add --remove

Original Article

admin Posted in Command Line, Linux command, commit, git, Linux, programming, xargs Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑