Initial Configuration
Before you begin working with Git, configure your identity globally (only needed once).Basic Local Commands
These commands help you manage a local repository.SSH Setup for Remote Repositories
SSH provides secure authentication without passwords. Keys are generated in~/.ssh (use Git Bash on Windows).
Working with Remote Repositories
Connect with remote repositories using SSH URLs (e.g.,git@github.com:usuario/repo.git).
Cloning and Adding Remotes
Branch Management
Branches enable parallel development workflows, such as feature branches.Basic Branch Operations
Synchronizing with Remotes
Use SSH for secure push operations.Push and Pull Commands
Best Practices
- Write clear, descriptive commit messages
- Commit frequently with logical units of work
- Always pull before pushing to avoid conflicts
- Use feature branches for new development
- Keep the main/master branch stable
- Review changes with
git statusandgit diffbefore committing