Git: Common Commands SuiteNow Supports Access From Explorer/Editor Context Menus!InstallationRun SetupFor the extension to work, your folder system needs to be set-up in a specific way.
To do step 2, choose either of the following:WARNING: The second method will store your credentials in plaintext, not encrypted, which is insecure SuggestionsIf you have any suggestions for other useful commands you'd like to see in this suite, please request the feature on the GitLab page. Git: Add RemoteUsageTo use the command, press F1 in the Code window, and type:
When the pop-up appears, enter your Remote's name and press < Enter >. Another pop-up will appear, where you enter the Git Repository's URL you wish to add, and press < Enter >. Git: List/Remove RemotesUsageTo use the command, press F1 in the Code window, and type:
A list of remotes will appear under the Command Palette. If you click on a remote, its verbose information will appear. You can also remove a remote from the project. This can be done through the verbose information drop-down. A Remove option will be available, and when clicked, will remove the remote. Git: Pull - (Remote/Branch) (Updated)UsageTo use the command, press F1 in the Code window, and type:
When the pop-up appears, enter your Remote's name and press < Enter >. Another pop-up will appear, where you enter the Branch you wish to pull from, and press < Enter >. A file is saved to your user directory which will store you previous entries for quick access. Note: To make good use of this command, you should setup other remotes alongside origin. VS Code's built in command Git: Pull will pull from the repository you have set as the upstream, which defaults to your origin remote, so if your only remote is origin, you are better off using Git: Pull to do pulls as it will be more efficient than this command. Git: Push - (Remote/Branch)UsageTo use the command, press F1 in the Code window, and type:
When the pop-up appears, enter your Remote's name and press < Enter >. Another pop-up will appear, where you enter the Branch you wish to push to, and press < Enter >. Note: To make good use of this command, you should setup other remotes alongside origin. VS Code's built in command Git: Push will push to the repository you have set as the upstream, which defaults to your origin remote, so if your only remote is origin, you are better off using Git: Push to do pushes as it will be more efficient than this command. Git: StatusUsageTo use the command, press F1 in the Code window, and type:
Status information will appear under the Command Palette. If you click on one of the file list entries in the pop-up, it will display the file list for that type. (e.g.: You select 'Number of Modified Files: ', a list of your modified files will appear) Individually Packaged Extensions
Dependencies
LicenseSourceChangelog
|