Sunday, September 18, 2022

git bare clone - list files / read files howto

 # list files

git ls-tree --full-tree --name-only HEAD

# if utf

git config core.quotepath off


# read files

git show master:path/to/file


# revert bare clone

git config --local --bool core.bare false


# revert single branch on shallow clone

git remote set-branches origin '*'

git fetch --depth 1 -v






Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home