

Git commit -m “description” This command commit the items (the description can be multiline using ender before closing with “) Note: In visual studio code the file added for commit have the A icon, if not the U icon Git reset nomefile.txt (remove the file nomefile.txt to the commit list) (add all the file to the the commit list) Git add nomefile.txt (add the file nomefile.txt to the commit list) Git config –global user.name nomefile.txtĬreate a file in the directory called nomefile.txt (this is a bash command) The first time using git you have to add name and email, using the follow commands:


On Visual studio code, for work with git bash on the terminal, you have to select Git Bash form the terminal options Visual studio bash terminal and extensionsĪn useful extension for git on visual studio is gitlens (is recommended to check history commits etc inside visual studio) On visual studio code, it is possible to initialize a project selecting source control (ctrl+shift+g) and than click “initialize Repository” Once git is installed you can initialize it by the mouse right click, click on git bash here and type: git init Initializing a folder means make it ready to work with git, when a folder got initialized will contain a hidden. Git download and installationĭownload (win) : Initialize a folder directly and in visual studio code In this page I just put some commands and reminders. There are a lot of guides to use git and GitHub, link below.
