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
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
in a git project, there are three parts and they are
- A Working Directory: where we'll be doing all the work: creating, editing, deleting and organizing files
- A Staging Area: where we'll list changes we make to the working directory
- A Repository: where Git permanently stores those changes as different versions of the project
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
Post a Comment