Open MichaelMugaiga opened 2 years ago
At the moment I don't need help.
Working with Markdown, cloning the repository, creating branch as well as going from one branch to another using git checkout, committing and pushing any changes to my developments.
I had a challenge with my code verification using npm, some npm commands couldn't run because I had a lower version nodejs installed on my computer. I downloaded a new version and installed it. after upgrading nodejs I was able to run npm commands to verify my code.
I have learned that after any changes to the code or a software update during the process of committing code, we need to re-run npm install to verify our code again and thereafter proceed with committing and pushing the changes. This is because after upgrading my nodejs I didn't run this command again and went straight to the command that had earlier failed before the software upgrade, then during merging my pull request, my instructor Tugba highlighted some missing info, and advised me to re-run npm install. All was fine after re-running this command
I'm now going through Sunday's material.
I found two very helpful and interesting websites about GitHub. https://www.earthdatascience.org/workshops/intro-version-control-git/pull-request/ this has notes on git and GitHub and explains all commands used.
I recommend this for anyone who is trying to learn or get familiar with git hub. learngitbranching.js.org
hi @MichaelMugaiga, you are going well!!
You did great with sharing the materials that was helpful for you on Slack.
I recommend this for anyone who is trying to learn or get familiar with git hub. learngitbranching.js.org
Workflows: Week 2
I Need Help With: At the moment I don't need help.
What went well? Creating discussions, linking a pull request to an issue, modifying code locally on my computer and using the git push to push the changes to the repo. Creating directories and adding files to them.
What went less well? I had challenge deleting a commit to files that I had already pushed to repo, it was challenging and eye opening to further information on github. For instance I added to commit package.json files and pushed to the repo, undoing this commit was challenging and it was new for me to do on already pushed files without any impact.
Lessons Learned I now have a clear and straight forward understanding of GitHub pull requests and how they are used to submit changes to a repo, github collaboration on who you want to review an issue or pull request and how issues are used to track changes as well as using discussions for changes in the github repo.
Sunday Prep Work Currently doing practice on HTML and CSS .
Learning 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:ls
to check all folder and file names in your projectnpm run lint:ls
npm 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 status
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.
main
main
until Continuous Integration (CI) checks have passedpush
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