DEV Community

zoharasulin
zoharasulin

Posted on • Updated on

osdc-2023-assigment8-gitbash

At lesson 8 we learned how to configure git-scm on Windows, including setting the default editor and configuring global and local repository settings*(one thing that help me that is to choice notepad instead vim)*
We also learned about the process of cloning, forking, and pulling repositories, as well as creating and pushing repositories to GitHub.
Additionally, we were introduced to basic git workflows, including branching, adding, committing, and pushing changes to a repository. Finally, we learned about advanced git commands, such as rebasing and force pushing, to manage changes to a repository.

I'm Highly recommend if you want to know git from basic to listen 2 videos:
Here learn how to upload new project from cmd git to github
and here learn how to fork exist reposotory and push with changes

something that help me from this lesson:
Take link from ssh when you want to send changes to project in github via git-bash and not from https.

This week's assigment was to take one project, set up the local development environment, and send a PR.
I chose the OSDC - Open Source Development Course

I found course in india that very same to this course and add him to courses.md

The very most thing when you work on project that is not your, change the main branch to other branch by:

git checkout -b zoharasulin/add
Enter fullscreen mode Exit fullscreen mode

To work on project that is not yourself,you need add new fork in github,after copy ssh(not http!)
and write:

git remote add fork git@github.com:zoharasulin/OSDC-Code-Maven.github.io.git

Enter fullscreen mode Exit fullscreen mode

now you can see you have 2 remotes when you write:

git remote -v
Enter fullscreen mode Exit fullscreen mode

I hope I help you,if you need help feel free to contact me here.

Zohar

Top comments (0)