Git Command Line Basics
Master Essential Git Commands for Professional Development
Prerequisites for This Tutorial
Class Files Setup
You'll need the Git Class folder with the Hipstirred-website folder accessible on your Desktop. Keep this window open throughout the tutorial.
Terminal Access
Mac users need Terminal.app from Applications > Utilities. Windows users can use Command Prompt or Git Bash.
Basic File Navigation
Understanding how to arrange windows and drag files will help with the graphical approach to navigation.
Terminal Commands by Platform
| Feature | Mac/Linux | Windows Git Bash | Windows Command Prompt |
|---|---|---|---|
| List Directory Contents | ls | ls | dir |
| Change Directory | cd | cd | cd |
| Confirm Command | Return | Enter | Enter |
Setting Up Your Terminal Navigation
Open Terminal Application
Mac: Applications > Utilities > Terminal.app. Windows: Launch Git Bash or Command Prompt based on preference.
Prepare the cd Command
Type 'cd' followed by a space in your terminal window. Don't press Enter yet.
Use Drag and Drop Navigation
Arrange windows so you can see both the Hipstirred-website folder and terminal. Drag the folder into the terminal to auto-complete the path.
Execute and Verify
Press Return/Enter to navigate to the folder, then use ls (or dir) to confirm you can see the folder contents.
The Up Arrow key is universal across Mac and Windows terminals. Keep pressing Up Arrow to cycle through your command history - this works in Terminal, Git Bash, and Command Prompt.
Essential Terminal Shortcuts
Cancel Current Command
Press CTRL-C on both Mac and Windows to cancel the current command and get a clean command line. This works when you make typing mistakes.
Navigate Command History
Use Up Arrow to access previous commands and Down Arrow to move forward through your command history.
Hold Cmd and drag any folder onto an empty terminal prompt to instantly navigate to that folder. No need to type cd, no need to press Return - the terminal automatically changes to that directory.
Mac Navigation Methods Comparison
| Feature | Standard Method | Power User Method |
|---|---|---|
| Steps Required | 4 steps | 1 step |
| Typing Required | Type cd + space | No typing |
| Key Combination | None | Cmd + drag |
| Confirmation Needed | Press Return | Automatic |
Available Course Categories
Web Development Courses
Learn full-stack development with hands-on projects and expert instruction in small class settings.
Python Programming
Master Python fundamentals and advanced concepts through practical coding exercises and real-world applications.
Data Science Training
Develop analytical skills and learn data manipulation, visualization, and machine learning techniques.
Web Design Programs
Create compelling user interfaces and experiences with modern design principles and tools.
All courses feature small class sizes for personalized attention, hands-on learning experiences, and expert-led instruction to ensure comprehensive skill development.
Key Takeaways