Forum > General
How to use git
MarkMLl:
--- Quote from: Martin_fr on November 22, 2021, 03:38:18 pm ---With GIT
- view all branches (without needing to download the repo)
--- Code: Bash [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---git ls-remote https://gitlab.com/freepascal.org/lazarus/lazarus.git
--- End quote ---
I think that's the important detail. After all, Trev was saying how to use git from the command line, not how to navigate around a website.
Whatever my reservations about being force to use git, this is actually an advance over Subversion which did make it "challenging" to review tags etc. remotely. If OP is /completely/ unable to use git in this way he should say so before we go any further.
MarkMLl
BosseB:
Thanks for the suggestions.
I can take the commands given and run on my Linux box for Lazarus.
But I have no understanding about how the actual URL was arrived at so could you please also give me the corresponding fpc URL?
I tried this but it resulted in some kind of login being required, which was not needed for lazarus:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---git ls-remote https://gitlab.com/freepascal.org/fpc/fpc.gitUsername for 'https://gitlab.com':Password for 'https://gitlab.com':remote: HTTP Basic: Access deniedfatal: Authentication failed for 'https://gitlab.com/freepascal.org/fpc/fpc.git/'
I need to document this exactly when I now embark into the post-SVN era for fpc/lazarus, otherwise I will have a guarantee to forget it until the next time I need to install again (I probably do 2-3 installs like this per year).
And to simplify things along with the descrition document I also usually write bash scripts where the commands are housed for a complete install from scratch, one for PC Linux and one for Raspberry Pi devices.
Martin_fr:
Just browse the gitlab page to the fpc source repository page. Copy the url from the "clone" button.
MarkMLl:
--- Quote from: Martin_fr on November 22, 2021, 05:44:45 pm ---Just browse the gitlab page to the fpc source repository page. Copy the url from the "clone" button.
--- End quote ---
I can confirm that taking the links you provided earlier and then following through as above generates a usable listing of tags etc.
MarkMLl
BosseB:
Now I tried the follow-up command for lazarus in order to get the 2.0.12 sources but it did not result in anything I can use...
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---$ git initInitialized empty Git repository in /home/bosse/devel/lazarus/.git/$ git fetch --depth=1 https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus_2_0_12remote: Enumerating objects: 12468, done.remote: Counting objects: 100% (12468/12468), done.remote: Compressing objects: 100% (11149/11149), done.remote: Total 12468 (delta 2684), reused 7275 (delta 1168), pack-reused 0Receiving objects: 100% (12468/12468), 34.50 MiB | 8.11 MiB/s, done.Resolving deltas: 100% (2684/2684), done.From https://gitlab.com/freepascal.org/lazarus/lazarus * tag lazarus_2_0_12 -> FETCH_HEAD $ git switch lazarus_2_0_12fatal: invalid reference: lazarus_2_0_12
There was no directory with source files created in any of these commands in the dir I was positioned...
The only additional dir created was the .git hidden dir. And it only contains some 35 KB of data...
Something here is obviously in error.
Navigation
[0] Message Index
[#] Next page
[*] Previous page