I'm using Sparkleshare, which uses Git to sync files between my laptop and my backup server.
Now I want to be able to browse in the files and dirs that I've uploaded to my server, but I do not know how?
I understand that Git uses some sort of special file hierarchy and that I cannot just list my files, right?
But how would I have to do to list them and browse my files?
The Git Show command allows us to view files as they existed in a previous state. The version can be a commit ID, tag, or even a branch name. The file must be the path to a file. For example, the following would output a contents of a file named internal/example/module.go file from a tagged commit called “release-23”.
This command:
git ls-tree --full-tree -r --name-only HEAD
lists all of the already committed files being tracked by your git repo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With