Course - Learn Git in Code Academy

git init - initialize and this command sets up all the tools Git needs to begin tracking changes made to the project.

in a git project, there are three parts and they are
  1. A Working Directory: where we'll be doing all the work: creating, editing, deleting and organizing files
  2. A Staging Area: where we'll list changes we make to the working directory
  3. A Repository: where Git permanently stores those changes as different versions of the project
we can check the status of those changes with:

git status - it shows the untracked files in red color and then we should do

git add 'file name' to add the file

and then  we should do 'git commit' to reposit the file

git show HEAD
git log to see the history

Comments

Popular posts from this blog

How to push a file into a docker container

Docker - Begginer 1

Project(on going) - IPv6 Fragmentation