Git : Add a New File with git

Опубликовано: 10 Март 2026
на канале: Block of code
188
2

So in this tutorial you are going to see how to add any folder or files into your project with git ...

steps:
1- open terminal window
2- you have to create a new project folder with git , so you have to type next command line and press enter : git init "type project folder name"
3- now you have to navigate to project folder , so to enter your project folder you have to use next command line , and press enter : cd "type project folder name "
4- in current step you have to move any file or any folder or you have to create a new folder or file ... in current example I have to create a new text file and add some text inside this file as you can see , so you have to type next command line , and press enter : echo "Text any text " "add less than sign " "type new file name or add text to any old text file"
5- add this file to your project , so to add current file to git you project with git you have to use next command lien and press enter : git add . Or ga .