Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

git-ls-files

git ls-files in bare repository

June 2, 2023 by Tarik

You can try the other command which list files: git ls-tree –full-tree -r HEAD According to this comment, the command git ls-tree works in bare repo.

Categories git Tags git, git-bare, git-ls-files Leave a comment

Git: list only “untracked” files (also, custom commands)

September 19, 2022 by Tarik

To list untracked files try: git ls-files –others –exclude-standard If you need to pipe the output to xargs, it is wise to mind white spaces using git ls-files -z and xargs -0: git ls-files -z -o –exclude-standard | xargs -0 git add Nice alias for adding untracked files: au = !git add $(git ls-files -o … Read more

Categories git Tags git, git-ls-files, git-rm, git-stage, git-status Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa