I really have problems to manage git. Because I would like to develop simple features like the HP-Bar i died i would like to set up myself a fork to develop.
The problem is that i dont understand how?
Maybe i have a completely wrong understanding of git.
FreshD helped me, but i dont think its working porperly.
So could you please give me a step by step instruction how to set it up and answer to the following questions:
1. Should i better have 2 folders on my pc? One for the original mg-repo and one for mine?
2. How can i setup this remote stuff?2.1 How do i update my branches in my fork repo? Or shouldnt I?
2.2 Which steps do i need to take to update/to get the newest version?
git checkout upstream/develop
git pull
?
2.3 Maybe you could even explain me the stuff with the remotes because i dont get it in any way yet
3. How can i let a branch be based on the the newest develop branch from the mg-repo and how can i push it to my repo? Or is creating new branches in my repo the wrong way to do it?
4. When i write git push on a branch which is not in my "online"-repo it will be created right?
5. How do i switch the branches correctly? With git checkout branchname?
OR
Tell me another way to set up something to develop.
Its really sad that i dont get the idea of git, because git is the only thing that prevents me from developing for mg (ok i am a newbie in c++ but i can implement simple features). The last week i really tried to make some things, but most of the time was wasted into understanding git. I think i wasted about 5 hours or more into understanding git and this is definitely to much for a version control system.
Is it really this hard to contribute to mg???
EDIT: I got it working now and i think i got it but a small instruction to look up if i did everything right would be nice!