Git Description1
Git Description1
git do :
Manage projects with Repositories
Clone a project to work on a local copy
Control and track changes with Staging and Committing
Branch and Merge to allow for work on different parts and versions of a project
Pull the latest version of the project to a local copy
Push local updates to the main project
Tracked - files that Git knows about and are added to the repository
Untracked - files that are in your working directory, but not added to the
repository
When you first add files to an empty repository, they are all untracked. To get Git
to track them,
you need to stage them, or add them to the staging environment.
Staged files are files that are ready to be committed to the repository you are
working on.
?? - Untracked files
A - Files added to stage
M - Modified files
D - Deleted files
The -a option will automatically stage every changed, already tracked file.
Branches allow you to work on different parts of a project without impacting the
main branch.
When the work is complete, a branch can be merged with the main project.
Branching in Git is very lightweight and fast!