How to work with Git & Github?
Hello, I'll state the way I think you should work with a repo on github. I am not sure it's correct, so I'd like y'all to help me with this. 1. In order to get the repo on your local machine you do: git clone (repo url from github) 2. You should make a new branch for your own changes by typing: git branch new_branch 3. You do your changes 4. If everything you changed is fine and didn't ruin everything - you merge the main branch with your branch by doing: git checkout main git merge new_branch 5. You upload everything to github: git push Now, how do I make sure that while I was working on my machine, someone else didn't change the repo on github? Otherwise there will be conflicts... how often and in what stage to I do "git pull"? Thanks.