Git and GitHub Summary
Git and GitHub Summary
Each developer can have their own copy of the entire repository
Examples: Git
Git vs GitHub
Git:
Open-source distributed version control system
Issue tracking
Code review tools
Project management features
Pull requests
Collaboration tools
2. git status : Check the status of your files (tracked, modified, etc.)
3. git add [file] : Start tracking a file or stage changes for commit
6. git diff : See changes between commits, commit and working tree, etc.
7. git reset --hard [commit] : Reset to a specific commit (discards all changes after that
commit)
8. git push : Send commits to a remote repository (like GitHub)
3. Create/modify files
11. Revert to previous versions if needed with git reset --hard [commit-id]
GitHub Usage
Create a GitHub account
Create a new repository
Contains:
Objects folder: Stores all file versions
Refs: Contains references to commits
Organization management
Security features
Code backup
Distributed nature prevents single points of failure