Home > OS >  Switching between git branches in var/www/html
Switching between git branches in var/www/html

Time:09-04

I have a git initialized in var/www/html folder on an Armbian Linux server that I log into via ssh. I have created several git branches for test purposes. In my web browser on my personal computer, how can I view the files (and file versions) that are not on the master branch?

CodePudding user response:

If all you have is a non-bare repository on the Armbian Linux server, then you would need to:

  • connect to it through SSH
  • go to /var/www/html folder
  • switch the branch currently checked out (git switch)

See the result from your local computer.

Any other GitWeb-like setup would requite a bare repository, to be shared on the server.

  • Related