Open zerubabel4 opened 2 years ago
Week 1
@zerubabel4 branching and working with git can be tricky at first, but you will get used to it quickly and see why a version control system is used in every coding project, especially for team projects.
to delete a branch locally, first you need to be in a different branch (for example main
) and run git branch -D branchname
the entire repo you can delete by removing the folder that contains the repo
after done writing your code, you would run
git add .
git commit -m 'my new feature description goes here'
@zerubabel4 great work this week, seems like you are comfortable with git & github and well done for watching the videos! the next week will be exciting! one question: what do you mean struggling with nam
?
thank you @danielhalasz i was trying to say npm
.
Learning Objectives
Priorities: π₯, π£, π₯, π (click to learn more)
There is a lot to learn in this repository. If you can't master all the material at once, that's expected! Anything you don't master now will always be waiting for you to review when you need it. These 4 emoji's will help you prioritize your study time and to measure your progress: - π₯: Understanding this material is required, it covers the base skills you'll need for this module and the next. You do not need to finish all of them but should feel comfortable that you could with enough time. - π£: You have started all of these exercises and feel you could complete them all if you just had more time. It may not be easy for you but with effort you can make it through. - π₯: You have studied the examples and started some exercises if you had time. You should have a big-picture understanding of these concepts/skills, but may not be confident completing the exercises. - π: These concepts or skills are not necessary but are related to this module. If you are finished with π₯, π£ and π₯ you can use the π exercises to push yourself without getting distracted from the module's main objectives. ---
π₯ 0. Local Development Without Git
Practice the foundational workflows of software development by learning to write Markdown locally on your own computer using Visual Studio Code (VSCode), the Command Line Interface (CLI), and NPM scripts to automate your code's quality (formatting, linting and spell checking).
cd
ls
cat
touch
mkdir
npm install
to install a project's dependenciespackage.json
file to find which scripts are available for the projectnpm run <script>
to execute an npm scriptnpm run format
to format all of the documents in your projectnpm run format:check
to make sure all files are well-formattednpm run lint:md
to check all Markdown files in your folder for linting mistakesnpm run lint:md
npm run spell-check
to check the spelling in all the files of your project.cspell.json
to add words that should be allowed in your projectnpm run lint:ls
to check that all files and folders follow the project's naming conventions.π₯ 1. Local Development With Git
Practice using Git to save and organize your development process. You will learn how you can use Git to go back to previous versions of your project, and to work on different changes in parallel.
git init
git add <path>
git commit -m <message>
git log
git branch <branch-name>
git checkout <branch-name>
git checkout -b <branch-name>
git merge <branch-name>
git log
andgit checkout <commit-hash>
git stash
andgit pop
.gitignore
: You can use a.gitignore
file to describe which files you don't want included in your git history.main
when they are finished.π₯ 1. Local/Remote Development
Learn how you can connect your local Git repositories with a GitHub repository to add more structure to your development process and to share your projects.
push
andpull
changes between remote & local branchesmain
.main
branch.main
branch and prevents conflicts from happening in GitHub. For each contribution to the project you can ...main
on your local machinemain
to localmain
main
to your new branchmain
main
π£ 3. Remote Collaboration
Learn how to collaborate with a group on a single project hosted in a GitHub repository. Practice using GitHub's project management features to organize your group's tasks and to double-check your project's code quality.
main
.π₯ 4. Open Source Development
Explore the wider world of Open Source software by learning how communities of independent developers write and maintain the code we all rely on.
Week X
I Need Help With:
What went well?
What went less well?
Lessons Learned
Sunday Prep Work
---- END CHECK-IN TEMPLATE ---->