博文

目前显示的是 一月, 2024的博文

How to Use Git with VS Code

Git is a tool for synchronizing basically your code to a web repository or a local server repository. Github is a public hub of code reposities. In order to use Github, You need to create your account firstly . In general situation, an account with community plan is enough for using. Then, install Git from the official website . Following that, install VS Code from the official website . If you don't have a set of SSH key on your system, open the Git Bash or just the Bash and type the command below, which will create an SSH key for you: ssh-keygen Naviagte to the directory "~/.ssh",  copy the contents of "id_rsa.pub" and paste it in the settings page of your github account. You should open the webpage of Github and find the setting in a tab named "Access/SSH and GPG keys". After these steps, you can link to github using ssh protocol . Following command could test if the SSH key is properly installed. ssh -T git@github.com Create a repository in th...