Posts: 252
Joined: Jan 2007
Reputation:
0
AaronD
Senior Member
Posts: 252
This is my first time using Git. I signed up at Github, followed the Github instructions on generating keys, forked the Xbmc repository, cloned my new repository (AaronDnz) and made a few changes for a trac ticket.
After compiling and verifying that it is all working, I right clicked on the XBMC folder and chose the menu option "Git Commit -> Master". It showed the files I had changed correctly, I typed in a comment, and it appeared to upload everything and at the end said it had committed the changes successfully.
However, on Github I can't see my commits showing up in my repository. I want to submit a pull request for the changes, but when I try and essentially says that there are no changes compared with the xbmc repository.
What am I missing or doing wrong?
Posts: 4,146
Joined: Jan 2008
Reputation:
40
You pushed the changes after committing them locally?
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 252
Joined: Jan 2007
Reputation:
0
AaronD
Senior Member
Posts: 252
I thought committing them was the act of pushing them up to my repository? Is this not the case? I haven't done anything else.
Posts: 4,146
Joined: Jan 2008
Reputation:
40
No, the actual commit is local only. To get your changes into the repository you'll have to push them.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
strictly speaking, you are correct. but you forget the fact that your repository is just that, yours. it's not the one on github, it's the one on your machine.
Posts: 252
Joined: Jan 2007
Reputation:
0
AaronD
Senior Member
Posts: 252
Ok, got it sorted now. Thanks.
Posts: 252
Joined: Jan 2007
Reputation:
0
AaronD
Senior Member
Posts: 252
A few more questions, if anyone is willing to help.
1. Now I have my remote repository on Github with my changes, and I have a pull request to the xbmc master repo. My remote repository is a few days behind xbmc master. How do I update this, update my local repo, but preserve my changes?
2. After I committed the changes, it changed the CR/LF to just CR. I saw a setting about this when I installed Git. When I opened the solution in Visual Studio, it turned them back into CR/LF and has marked the files as changed. How it shows them as being changed in Git. How do you manage this on a Windows platform?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
it fetches the remote. the branches on that remote is then available as upstream/<branch name>.