This guide provides a step-by-step tutorial on how to install, configure, and use Git on Ubuntu. It includes essential commands and best practices for synchronizing local repositories with GitHub using SSH authentication.
- Installation instructions for Git on Ubuntu.
- Step-by-step guide for setting up SSH authentication with GitHub.
- Basic and advanced Git commands for version control.
- Explanation of Git branches, commits, and synchronization.
- Life hack for cloud-local synchronization using GitHub repositories.
git status # Check the repository status
git add -A # Stage all changes
git commit -m "Commit message" # Commit changes
git push -u origin main # Push changes to remote repository
git pull # Update local repository with remote changesTo clone a repository from GitHub:
git@github.com:jennifergc/git_guide.gitgit branch feature-branch # Create a new branch
git checkout feature-branch # Switch to the new branch
git merge feature-branch # Merge branch into main
git branch -d feature-branch # Delete the branchFeel free to improve this guide and share your knowledge by submitting a pull request!
This project is licensed under the MIT License.