User:M Janczyk/Git GUI
Jump to navigation
Jump to search
GUI for Git/SVN repositories on bwunicluster
This tutorial explains how to get a GUI experience for a Git or SVN repository on a remote machine with Microsoft Visual Studio Code (VS Code) and the 'Remote Development' extension.
Note: The 'Remote Development' extension for VS code is in a preview state. If there occur any bugs it is recommended to use VS Code Insiders instead of VS Code.
Visual Studio Code
Visual Studio Code Insiders
Install extension and connect to a repository on bwunicluster
- Click on ‘Extensions’ on the left and search for ‘remote development’. Intall the ‘Remote Development’ extension from Microsoft by clicking on ‘Install’.
- Click on ‘View → Command Palette...’ and then type ‘remote ssh’. Choose ‘Remote-SSH: Connect to Host...’ and press enter. Now click on ‘Add New SSH Host...’ and enter ‘ssh youruser@bwunicluster.scc.kit.edu’.
- VS Code asks where to to store the ssh configuration. Choose the first entry to store it in your home directory.
- Click on ‘View → Command Palette...’ and then type ‘remote ssh’. Choose ‘Remote-SSH: Connect to Host...’. Now use ‘bwunicluster.scc.kit.edu’ and in the new window accept the fingerprint by clicking on ‘continue’.
- Enter your password for bwunicluster and press enter.
- The green ‘SSH: bwunicluster.scc.kit.edu’ at the bottom indicates that this VS Code window is connected to the remote machine.
- Open a terminal by clicking on ‘Terminal → New Terminal’. Navigate to your Git repository and type ‘code .’ and hit enter. After entering your password again a new instance of VS Code opens with the folder of your Git repository as working directory.
- Reopen the terminal by clicking on ‘Terminal → New Terminal’. The new terminal should open in the folder of your Git repository.
- By typing ‘code filename.extension’ you can open and edit a file in VS Code.
- When files are modified you can see this at the left by clicking on ‘Source Control’. You can click on the files which have changed and VS Code displays the changes. If you do not see any files changed it may help to click on the refresh button.
- You can do the same with Subversion by installing the ‘SVN’ extension by Chris Johnston.