Set up Visual Studio Code with Git in the Terminal

0

I try to configure my editor VisualCode to open it from the terminal but I get an error when I run from the terminal

git merge origin / master --allow-unrelated-histories

How could I solve it? Thanks!

    
asked by Mariuhs F S 22.06.2018 в 19:11
source

1 answer

0

You can open a Visual Studio project with the following command:

From Linux or Windows (with git bash)

# Situandose en la carpeta que desea abrir Visual Code
code . # To open in Visual Studio Code.

For Mac

open ~/.bash_profile

Edit the same by adding the following:

code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
source ~/.bash_profile

Close the terminal completely and reopen it by launching the code command which, this time, will open the Visual Studio Code, with and without parameters.

    
answered by 24.06.2018 в 20:11