Git Basics
- Basic git commands
Getting code from GitHub
- Cloning – copy everything from a git server onto your own computer with
git clone <enter a git repo url> - Pulling – grab the latest changes from a repo you are already connected to with
git pull
Steps to bring your code to GitHub
- Staging – stage all your changes with
git add . - Commit – commit your changes with
git commit -m "i did something." - Push – upload your commits to the server
git push
Standards
- Always pull before you start coding to avoid conflicts
- Make sure your commits are somewhat descriptive