let' make project to work with create folder somewhere on your system called git_practice inside the foldermake simple python programhello_world py print("hello git world!"we'll use this program to explore git' basic functionality ignoring files files with the extension pyc are automatically generated from py filesso we don' need git to keep track of them these files are stored in directory called __pycache__ to tell git to ignore this directorymake special file called gitignore--with dot at the beginning of the filename and no file extension--and add the following line to itgitignore __pycache__this tells git to ignore any file in the __pycache__ directory using gitignore file will keep your project clutter free and easier to work with note if you're using python replace this line with pyc python doesn' create __pycache__ directoryeach pyc file is stored in the same directory as its corresponding py file the asterisk tells git to ignore any file with the pyc extension you might need to modify your text editor' settings so it will show hidden files in order to open gitignore some editors are set to ignore filenames that begin with dot initializing repository now that you have directory containing python file and gitignore fileyou can initialize git repository open terminalnavigate to the git_practice folderand run the following commandgit_practicegit init initialized empty git repository in git_practicegitgit_practicethe output shows that git has initialized an empty repository in git_practice repository is the set of files in program that git is actively tracking all the files git uses to manage the repository are located in the hidden directory git/which you won' need to work with at all just don' delete that directoryor you'll lose your project' history using git for version control