Summary
5 minutesModule: Local Git Workflow in Action: From git init to Your First Commit
By this point, you’ve gained a solid grasp on using Git for local version control: You know how to initialize a repository, make changes, stage and commit those changes, inspect the history of your work, and undo things. That’s enough to manage small projects confidently.
Now that you’ve got a foundation, it’s worth experimenting on your own, to become more comfortable with the workflow. Consider creating a basic project structure for your next project or completing the current project if you have been following along. Here’s a sample layout you can try:
minimal-project/
├── README.md
├── LICENSE
├── .gitignore
├── datasets/
│ └── dataset.csv
├── src/
│ ├── import-data.<lang>
│ ├── analyze-data.<lang>
│ └── visualize-data.<lang>
├── tests/
│ └── test_valid-data.<lang>
└── doc/
└── getting-started.<lang>
Create a project structure and try:
- Adding (placeholder) files – the
.<lang>extension is just a stand-in for whatever file extension fits the language or languages you’re working with. - Making small edits and committing them.
- Looking into the history to see how Git records everything.
In the next module, we’ll cover working with remote repositories.