Topic: Move Widelands to GitHub
GunChleoc Topic Opener |
Posted at: 2019-09-14, 20:37
You clone only once. The command for checking out a branch is We still have to figure out the best way to use separate folders for separate branches to reduce compile time. There is a Edited: 2019-09-14, 20:37
Busy indexing nil values Top Quote |
kaputtnik |
Posted at: 2019-09-14, 21:08
Thanks for your explanations Nordfriese
Hm, not very helpful comment... sorry. I have looked into the wiki article and found a possible table row in Comparison with bazzar, but i am not sure about the 'branch name'. I guess its 'update-script' but trying
or
produces only errors. Edited: 2019-09-14, 21:08
Top Quote |
hessenfarmer |
Posted at: 2019-09-14, 21:09
Don't count on me anytime soon. I still struggle in understanding the workflow in git. And I don't know when I have time and motivation to read me through all the documentation. So for the moment being I am more the less out. Thanks for all your support the last years.
Top Quote |
Nordfriese |
Posted at: 2019-09-14, 22:12
You´re welcome
Can´t try this out myself because my development machine is having network problems, but you could try Top Quote |
Nordfriese |
Posted at: 2019-09-14, 22:23
Step 1: Please forget about all the git documentation. git is a powerful tool with a thousand ways of usage, and we need only about 1% of its functionality. It is possible to use git almost like bzr for our purposes:
This should be about all you need to get started... Edited: 2019-09-14, 22:24
Top Quote |
GunChleoc Topic Opener |
Posted at: 2019-09-14, 23:11
Hessenfarmer, please don't give up that easily Since you're on Windows, I recommend that you install Tortoise Git https://tortoisegit.org/. This is a lot easier to learn than using the command line, and then I can help you from there. The reason that we only have instructions for the command line so far is that there are so many different Git GUI clients. Kaputtnik, try this:
The last message you see should be:
And this is what the commands mean:
Clone the main Widelands repository and change into its directory. You only need to do this if you haven't already.
Register my fork and call it "gunchleoc"
Register what's in my fork. Again,
Switch to the branch. Busy indexing nil values Top Quote |
GunChleoc Topic Opener |
Posted at: 2019-09-14, 23:17
BTW GitHub also has good documentation for beginners: https://guides.github.com/ And some guides for TortoiseGit: Edited: 2019-09-14, 23:22
Busy indexing nil values Top Quote |
Hasi50 |
Posted at: 2019-09-15, 08:38
Gun: working with remotes like you explained above is the way to go.
Then we should use git worktree to create local source / working directories. The basic Atomic-Object for git is a commit-set (indendified by its hash). It is possible to have an inifinite number of repostiories and move around commit-sets between them. Linux (some git named Linus actually invented it ) uses a hierarchical aproach: subsystem maintainers collect change-sets an commit them to a master. From there the version branches are forked. Version maintainers cherry pick (security-)changes into the stable branches. We are not as big as the Linux Kernel but we could go a similar way. The only thing I must check now If I can commit to someone elses personal repo/branch I will try this now with gunchleocs update-script. ssh works interchangeable with http checkout I will add this to the Primer Here are the widelands where people may dwell, walking around care that evrythings well. Top Quote |
GunChleoc Topic Opener |
Posted at: 2019-09-15, 09:49
You can commit just fine, but you won't be able to push to my fork unless I give you GitHub permissions for it. You could push into a new branch at the widelands repo, but tha would becomeconfusing very fast. In the long run, it might be easier if most of us work on the official widelands repo, just like we used to do with the widelands-dev branch owner on Launchpad. Busy indexing nil values Top Quote |
kaputtnik |
Posted at: 2019-09-15, 11:53
Thanks GunChleoc, that worked. Now i have one directory in which i change the branches with The thing with linking other documentation is fine, but i think we should at least provide a full working example. If a new developer want to propose a change of one line in a lua file and he has no experience with git, he won't do that (propose the line change) if he has to read a lot of documentation on different sites, imho. Top Quote |