Learning Repositories and Basic GIT Commands
Learning Repositories and Basic GIT Commands
Git Architecture
Git follows a distributed architecture rather than a traditional three-tier
architecture. However, we can draw an analogy between the components
of Git and a three-tier architecture to understand their respective roles.
Here's a simplified representation:
5. git status:
6. git log:
7. git pull:
Fetches the latest changes from a remote repository and merges them
into the current branch.
8. git push:
9. git branch:
Lists all branches in the repository and highlights the current branch.
Shows the differences between the working directory and the staging area
or the repository.
14. git reset <file>:
Removes a file from the staging area, preserving its changes in the
working directory.