[Solved] Condividere cartella/files tra laptop e Gitlab

Forum › Forums › General › Other Languages › Italian › [Solved] Condividere cartella/files tra laptop e Gitlab

Tagged: 

  • This topic has 12 replies, 3 voices, and was last updated May 6-3:40 am by Fabrizio.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #175909
    Fabrizio
    Member

      Un saluto alla bella community:
      Necessito di un collegamento tra cartella/files del laptop con Gitlab.
      In sostanza quale codice inserire nel terminale per clonare il file che andro’ a lavorare poi su Gitlab e se ce’ bisogno di un contenitore come Docker oppure no.
      Mi spiego meglio {
      So che il codice da inserire nel terminale per la clonazione del file, lo fornisce Gitlab dopo essersi registrati e aver creato un nuovo progetto, quello che non so e’ se basta solamente fare quella procedura, perche’ in passato ricordo qualcuno che prima di fare cio’ andava ad installare Doker come contenitore.

      inxi -zv7
      System:
        Kernel: 5.10.197-antix.1-486-smp arch: i686 bits: 32 compiler: gcc v: 12.2.0
          clocksource: hpet Desktop: IceWM v: 3.4.5 vt: 7 dm: slimski v: 1.5.0
          Distro: antiX-23.1_386-full Arditi del Popolo 21 February 2024 base: Debian
          GNU/Linux 12 (bookworm)
      Machine:
        Type: Other-vm? System: Acer product: Aspire 1640 v: N/A
          serial: <superuser required> Chassis: Acer, Inc. type: 1
          serial: <superuser required>
        Mobo: Acer model: MugI serial: <superuser required> BIOS: Acer v: 3A05
          date: 09/03/05
      Battery:
        ID-1: BAT1 charge: 2.8 Wh (100.0%) condition: 2.8/29.6 Wh (9.6%) volts: N/A
          min: 14.8 model: SANYO 10ZL type: Li-ion serial: <filter> status: full
      Memory:
        System RAM: total: N/A available: 1.96 GiB used: 843.6 MiB (42.1%)
        RAM Report: permissions: Unable to run dmidecode. Root privileges
          required.
      CPU:
        Info: single core model: Intel Pentium M bits: 32 arch: M Dothan rev: 8
          cache: 2 MiB note: check
        Speed (MHz): 800 min/max: 800/1733 core: 1: 800 bogomips: 3466
        Flags: acpi apic bts clflush cmov cpuid cx8 de dts est fpu fxsr mca mce
          mmx msr mtrr nx pae pbe pge pse sep ss sse sse2 tm tm2 tsc vme
      Graphics:
        Device-1: Intel Mobile 915GM/GMS/910GML Express Graphics
          vendor: Acer Incorporated ALI driver: i915 v: kernel arch: Gen-3 ports:
          active: LVDS-1 empty: SVIDEO-1,VGA-1 bus-ID: 00:02.0 chip-ID: 8086:2592
          class-ID: 0300
        Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: intel
          unloaded: fbdev,modesetting,vesa dri: i915 gpu: i915 display-ID: :0.0
          screens: 1
        Screen-1: 0 s-res: 1280x800 s-dpi: 96 s-size: 338x211mm (13.31x8.31")
          s-diag: 398mm (15.69")
        Monitor-1: LVDS-1 mapped: LVDS1 model: Quanta Display 0x0027 res: 1280x800
          hz: 60 dpi: 99 size: 330x210mm (12.99x8.27") diag: 390mm (15.4")
          modes: 1280x800
        API: EGL v: 1.5 hw: drv: intel i915 platforms: device: 0 egl: 1.4
          drv: i915 device: 1 drv: swrast gbm: egl: 1.4 drv: i915 surfaceless:
          egl: 1.4 drv: i915 x11: egl: 1.4 drv: i915 inactive: wayland
        API: OpenGL v: 2.1 vendor: mesa v: 22.3.6 glx-v: 1.4 es-v: 2.0
          direct-render: yes renderer: i915 (: 915GM) device-ID: 8086:2592
      Audio:
        Device-1: Intel 82801FB/FBM/FR/FW/FRW High Definition Audio
          vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel
          bus-ID: 00:1b.0 chip-ID: 8086:2668 class-ID: 0403
        API: ALSA v: k5.10.197-antix.1-486-smp status: kernel-api with: apulse
          type: pulse-emulator
        Server-1: PipeWire v: 1.2.7 status: off with: 1: pipewire-pulse
          status: off 2: wireplumber status: off 3: pipewire-alsa type: plugin
          4: pw-jack type: plugin
      Network:
        Device-1: Intel PRO/Wireless 2200BG [Calexico2] Network driver: ipw2200
          v: 1.2.2kmprq bus-ID: 06:04.0 chip-ID: 8086:4220 class-ID: 0280
        IF: eth1 state: down mac: <filter>
        Device-2: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
          vendor: Toshiba driver: 8139too v: 0.9.28 port: 2000 bus-ID: 06:08.0
          chip-ID: 10ec:8139 class-ID: 0200
        IF: eth0 state: unknown speed: 100 Mbps duplex: full mac: <filter>
        IP v4: <filter> scope: global broadcast: <filter>
        IP v6: <filter> scope: link
        WAN IP: <filter>
      Bluetooth:
        Message: No bluetooth data found.
      Logical:
        Message: No logical block device data found.
      RAID:
        Message: No RAID data found.
      Drives:
        Local Storage: total: 55.89 GiB used: 6.89 GiB (12.3%)
        ID-1: /dev/sda vendor: Hitachi model: HTS421260H9AT00 size: 55.89 GiB
          speed: <unknown> tech: N/A serial: <filter> fw-rev: A70G scheme: MBR
        Optical-1: /dev/sr0 vendor: PIONEER model: DVD-RW DVR-K16RA rev: 1.16
          dev-links: cdrom,cdrw,dvd,dvdrw
        Features: speed: 24 multisession: yes audio: yes dvd: yes
          rw: cd-r,cd-rw,dvd-r state: running
      Partition:
        ID-1: / size: 54.71 GiB used: 6.89 GiB (12.6%) fs: ext4 dev: /dev/sda1
          label: rootantiX23 uuid: f56e74e1-2c5e-4ac9-8b44-3c0c7a2fa13e
      Swap:
        ID-1: swap-1 type: file size: 1024 MiB used: 0 KiB (0.0%) priority: -2
          file: /swap/swap
      Unmounted:
        Message: No unmounted partitions found.
      USB:
        Hub-1: 1-0:1 info: full speed or root hub ports: 8 rev: 2.0 speed: 480 Mb/s
          lanes: 1 chip-ID: 1d6b:0002 class-ID: 0900
        Hub-2: 2-0:1 info: full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s
          lanes: 1 chip-ID: 1d6b:0001 class-ID: 0900
        Hub-3: 3-0:1 info: full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s
          lanes: 1 chip-ID: 1d6b:0001 class-ID: 0900
        Hub-4: 4-0:1 info: full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s
          lanes: 1 chip-ID: 1d6b:0001 class-ID: 0900
        Hub-5: 5-0:1 info: full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s
          lanes: 1 chip-ID: 1d6b:0001 class-ID: 0900
      Sensors:
        Src: lm-sensors+/sys Message: No sensor data found using /sys/class/hwmon
          or lm-sensors.
      Info:
        Processes: 118 Uptime: 29m wakeups: 0 Init: SysVinit v: 3.06 runlevel: 2
        default: 2 Compilers: gcc: 12.2.0 alt: 12 Packages: pm: dpkg pkgs: 1946
        Shell: Bash v: 5.2.15 running-in: roxterm inxi: 3.3.31
      • This topic was modified 1 year, 4 months ago by Fabrizio.
      • This topic was modified 1 year, 4 months ago by Fabrizio.
      • This topic was modified 1 year, 4 months ago by Fabrizio.
      #175931
      Robin
      Member
        git clone ‹URL›
        cd ‹folder›
        git status
        git add -A
        git status
        git commit -m 'commit-message'
        git push

        Vedi git help per i dettagli.

        Il pacchetto git deve essere installato in anticipo sul sistema.

        Windows is like a submarine. Open a window and serious problems will start.

        #175934
        Fabrizio
        Member

          Installato git, ma non so se me la sento di andare avanti, difficile trovare una guida chiara in rete.
          Ho provato anche ad installare il tool di git che Antix mette a disposizione su Software Installer, ma non funziona nel mio caso.

          sudo apt-get install git
          Lettura elenco dei pacchetti... Fatto
          Generazione albero delle dipendenze... Fatto
          Lettura informazioni sullo stato... Fatto   
          I seguenti pacchetti aggiuntivi saranno inoltre installati:
            git-man liberror-perl
          Pacchetti suggeriti:
            git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb
            git-cvs git-mediawiki git-svn
          I seguenti pacchetti NUOVI saranno installati:
            git git-man liberror-perl
          0 aggiornati, 3 installati, 0 da rimuovere e 0 non aggiornati.
          È necessario scaricare 0 B/10,7 MB di archivi.
          Dopo quest'operazione, verranno occupati 54,2 MB di spazio su disco.
          Continuare?  s
          Selezionato il pacchetto liberror-perl non precedentemente selezionato.
          (Lettura del database... 165755 file e directory attualmente installati.)
          Preparativi per estrarre .../liberror-perl_0.17029-2_all.deb...
          Estrazione di liberror-perl (0.17029-2)...
          Selezionato il pacchetto git-man non precedentemente selezionato.
          Preparativi per estrarre .../git-man_1%3a2.39.5-0+deb12u2_all.deb...
          Estrazione di git-man (1:2.39.5-0+deb12u2)...
          Selezionato il pacchetto git non precedentemente selezionato.
          Preparativi per estrarre .../git_1%3a2.39.5-0+deb12u2_i386.deb...
          Estrazione di git (1:2.39.5-0+deb12u2)...
          Configurazione di liberror-perl (0.17029-2)...
          Configurazione di git-man (1:2.39.5-0+deb12u2)...
          Configurazione di git (1:2.39.5-0+deb12u2)...
          Elaborazione dei trigger per man-db (2.11.2-2)...
          #175950
          Robin
          Member
            $ sudo apt-get install git-doc
            
            $ desktop-defaults-run -b /usr/share/doc/git-doc/user-manual.html

            Windows is like a submarine. Open a window and serious problems will start.

            #175977
            Fabrizio
            Member
              $ git --version
              git version 2.39.5
              
              $ sudo apt-get install git-doc
              [sudo] password di Fabri: 
              Lettura elenco dei pacchetti... Fatto
              Generazione albero delle dipendenze... Fatto
              Lettura informazioni sullo stato... Fatto   
              Pacchetti suggeriti:
                git-cvs git-svn git-email gitk gitweb
              I seguenti pacchetti NUOVI saranno installati:
                git-doc
              0 aggiornati, 1 installati, 0 da rimuovere e 0 non aggiornati.
              È necessario scaricare 2.154 kB di archivi.
              Dopo quest'operazione, verranno occupati 13,3 MB di spazio su disco.
              Scaricamento di:1 http://ftp.nl.debian.org/debian bookworm/main i386 git-doc all 1:2.39.5-0+deb12u2 [2.154 kB]
              Recuperati 2.154 kB in 2s (1.221 kB/s)
              Selezionato il pacchetto git-doc non precedentemente selezionato.
              (Lettura del database... 166860 file e directory attualmente installati.)
              Preparativi per estrarre .../git-doc_1%3a2.39.5-0+deb12u2_all.deb...
              Estrazione di git-doc (1:2.39.5-0+deb12u2)...
              Configurazione di git-doc (1:2.39.5-0+deb12u2)...
              
              $ desktop-defaults-run -b /usr/share/doc/git-doc/user-manual.html
              /usr/lib/firefox-esr/firefox-esr    /usr/share/doc/git-doc/user-manual.html

              Dopo aver eseguito il comando desktop-defaults-run -b /usr/share/doc/git-doc/user-manual.html si apre su browser il link relativo di questa pagina file:///usr/share/doc/git-doc/user-manual.html

              #175981
              Robin
              Member

                Proprio questa è l’idea. Avevi chiesto una guida dettagliata. Quindi leggilo. Leggi e applica ciò che trovi in esso. I comandi di base più importanti di cui hai bisogno che avevo elencato nella mia prima risposta già nell’ordine corretto. L’URL è l’indirizzo del progetto Gitlab che hai creato su gitlab.com e dove puoi spingere. Vedi https://docs.gitlab.com/ come crearlo. In particolare quella sezione: https://docs.gitlab.com/tutorials/learn_git/

                Windows is like a submarine. Open a window and serious problems will start.

                #176069
                Fabrizio
                Member

                  Ok Robin, forse ho solamente sbagliato la directory del file su computer da condividere con gitlab quando ho digitato il secondo comando cd

                  $ git clone https://gitlab.com/project/baseproject.git
                  Clone in 'progettobase' in corso...
                  Username for 'https://gitlab.com': fabrilinux@hotmail.com
                  Password for 'https://fabrilinux%40hotmail.com@gitlab.com': 
                  remote: Enumerating objects: 6, done.
                  remote: Counting objects: 100% (6/6), done.
                  remote: Compressing objects: 100% (5/5), done.
                  remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
                  Ricezione degli oggetti: 100% (6/6), fatto.
                  
                  $ cd /home/aspire/Documenti/ProjectScript.html
                  bash: cd: /home/aspire/Documenti/ProjectScript.html: Non è una directory
                  
                  $ git status
                  fatal: .git non è un repository Git (né lo è alcuna delle directory genitrici)
                  
                  $ git add -A
                  fatal: .git non è un repository Git (né lo è alcuna delle directory genitrici)
                  
                  $ git commit -m 'commit-message'
                  fatal: .git non è un repository Git (né lo è alcuna delle directory genitrici)
                  
                  $ git push
                  fatal: .git non è un repository Git (né lo è alcuna delle directory genitrici)
                  #176070
                  abc-nix
                  Member

                    $ git clone https://gitlab.com/project/baseproject.git

                    OK

                    `$ cd /home/aspire/Documenti/ProjectScript.html
                    bash: cd: /home/aspire/Documenti/ProjectScript.html: Non è una directory`

                    Wrong. The path is ~/progettobase

                    Understand paths:
                    – Current path in terminal
                    pwd
                    – List files and folders in current path
                    ls
                    – Only list folders in current path
                    ls -p | grep /$
                    – Navigate to folder in current path
                    cd "<folder-name>"
                    – Navigate to folder with full path
                    cd "</full/folder/path>"

                    Moving files to folder, you use the cp command.
                    – Copy file from one place to another (using full paths)
                    cp "/full/path/origin" "/full/path/folder/"
                    – Copy file to current directory
                    cp "/full/path/origin" ./

                    If you copy the file from the zzzfm file manager (or drag and drop the file to the terminal), it will paste the full path of the file inside the terminal.

                    You can check all folder in the zzzfm file manager and open a terminal there if you don’t want to use cd. (By clicking the F4 key it will automatically open a terminal in the current folder in zzzfm). You can also copy files to the git repo folder in zzzfm and then use git command to add and commit changes.

                    If you git clone to the current path, it will create the folder in the current path.

                    git clone https://gitlab.com/project/baseproject.git
                    cd baseproject

                    If you want to git clone with another name for the folder use

                    git clone https://gitlab.com/project/baseproject.git <new-folder-name>
                    cd <new-folder-name>
                    • This reply was modified 1 year, 4 months ago by abc-nix.
                    • This reply was modified 1 year, 4 months ago by abc-nix.

                    Corruption has two hands: the Right and the Left. Don't let them squeeze you.

                    #176079
                    Fabrizio
                    Member

                      Thank you abc-nix, you’re right, you too like Robin have given me a lot of help, very competent!

                      EDIT
                      I opened the terminal with F4 inside the Documenti folder, where i then dragged the ProjectScript.html file, and used the mv command.
                      I moved the file ProjectScript.html, and then i cloned again.
                      Now I have on my computer ProjectScript.html inside progettobase folder, it should also be present on Gitlab progettobase folder, but I can’t find it there on Gitlab.
                      I think i’ll have to give some other command on terminal to synchronize ProjectScript.html files, computer/gitlab.

                      aspire@aspire:~/Documenti
                      $ mv '/home/aspire/Documenti/ProjectScript.html' '/home/aspire/progettobase'
                      aspire@aspire:~/Documenti
                      $ git clone https://gitlab.com/progettisti/progettobase.git
                      Clone in 'progettobase' in corso...
                      Username for 'https://gitlab.com': fabrilinux@hotmail.com
                      Password for 'https://fabrilinux%40hotmail.com@gitlab.com': 
                      remote: Enumerating objects: 6, done.
                      remote: Counting objects: 100% (6/6), done.
                      remote: Compressing objects: 100% (5/5), done.
                      remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
                      Ricezione degli oggetti: 100% (6/6), fatto.
                      aspire@aspire:~/Documenti
                      $ 
                      • This reply was modified 1 year, 4 months ago by Fabrizio.
                      #176109
                      Robin
                      Member

                        I moved the file ProjectScript.html, and then i cloned again.

                        Another clone command after changing something inside the cloned structure causes to overwrite all your changes, if you use the same folder here.

                        Now I have on my computer ProjectScript.html inside progettobase folder, it should also be present on Gitlab progettobase folder, but I can’t find it there on Gitlab.

                        Sure. It can’t be there. You need to push, as outlined in my first answer. The workflow is:

                        1.) Clone the gitlab.com repo to a local folder (like you did)
                        2.) Make your edits in this cloned folder and its subfolders. (Don’t touch the hidden folders and their content)
                        3.) Use the add command to register your changes. Use status command for checking before and afterwards. This step (add and status) can be repeated as often you like to apply consecutive changes still.
                        4.) If everything is fine, use the commit command for creating a commit locally from your changes.
                        5.) Once done, use push to transfer the local changes (precisely: the commit you created locally) to gitlab com. It will be marked there with the commit message you have assigned in the step before.

                        (All git commands after the first clone must be executed from within the cloned repo folder, this is why you have to cd into it before entering the commands for adding changes, checking the recent status, creating a commit and pushing it back to gitlab.com)

                        Windows is like a submarine. Open a window and serious problems will start.

                        #176122
                        Fabrizio
                        Member

                          Perfect, everything solved: You`ve been excellent guides!
                          I preferred uninstall through sudo apt remove git command, and than reinstall GIT to remember better.
                          I also uninstalled the git tool that antix makes available on Software Installer that i had installed before. i don’t need it for the moment.

                          fabri@linux:~
                          $ sudo apt-get install git
                          [sudo] password di fabri: 
                          Lettura elenco dei pacchetti... Fatto
                          Generazione albero delle dipendenze... Fatto
                          Lettura informazioni sullo stato... Fatto   
                          I seguenti pacchetti aggiuntivi saranno inoltre installati:
                            git-man liberror-perl
                          Pacchetti suggeriti:
                            git-daemon-run | git-daemon-sysvinit git-email git-gui gitk gitweb git-cvs
                            git-mediawiki git-svn
                          I seguenti pacchetti NUOVI saranno installati:
                            git git-man liberror-perl
                          0 aggiornati, 3 installati, 0 da rimuovere e 0 non aggiornati.
                          È necessario scaricare 0 B/10,7 MB di archivi.
                          Dopo quest'operazione, verranno occupati 54,2 MB di spazio su disco.
                          Continuare?  s
                          Selezionato il pacchetto liberror-perl non precedentemente selezionato.
                          (Lettura del database... 166312 file e directory attualmente installati.)
                          Preparativi per estrarre .../liberror-perl_0.17029-2_all.deb...
                          Estrazione di liberror-perl (0.17029-2)...
                          Selezionato il pacchetto git-man non precedentemente selezionato.
                          Preparativi per estrarre .../git-man_1%3a2.39.5-0+deb12u2_all.deb...
                          Estrazione di git-man (1:2.39.5-0+deb12u2)...
                          Selezionato il pacchetto git non precedentemente selezionato.
                          Preparativi per estrarre .../git_1%3a2.39.5-0+deb12u2_i386.deb...
                          Estrazione di git (1:2.39.5-0+deb12u2)...
                          Configurazione di liberror-perl (0.17029-2)...
                          Configurazione di git-man (1:2.39.5-0+deb12u2)...
                          Configurazione di git (1:2.39.5-0+deb12u2)...
                          Elaborazione dei trigger per man-db (2.11.2-2)...
                          fabri@linux:~
                          $

                          Manual removal about progettobase folder (previously created) and creation from terminal (git clone from terminal did not overwrite)

                          fabri@linux:~
                          $ git clone htt..://gitlab.com/progettisti/progettobase.git
                          fatal: il percorso di destinazione 'progettobase' esiste già e non è una directory vuota.
                          
                          $ git clone htt..://gitlab.com/progettisti/progettobase.git
                          Clone in 'progettobase' in corso...
                          Username for 'htt..://gitlab.com': fabrilinux@hotmail.com
                          Password for 'htt..://fabrilinux%40hotmail.com@gitlab.com': 
                          remote: Enumerating objects: 6, done.
                          remote: Counting objects: 100% (6/6), done.
                          remote: Compressing objects: 100% (5/5), done.
                          remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
                          Ricezione degli oggetti: 100% (6/6), fatto.
                          fabri@linux:~
                          $

                          Copied and pasted ProjectScript.html files manually without using mv command from termimal.
                          Opening terminal with F4 within newly created progettobase folder

                          fabri@linux:~/progettobase
                          $ git status
                          Sul branch main
                          Il tuo branch è aggiornato rispetto a 'origin/main'.
                          
                          File non tracciati:
                            (usa "git add <file>..." per includere l'elemento fra quelli di cui verrà eseguito il commit)
                          	ProjectScript.html
                          
                          non è stato aggiunto nulla al commit ma sono presenti file non tracciati (usa "git add" per tracciarli)
                          
                          fabri@linux:~/progettobase
                          $ git add ProjectScript.html
                          
                          fabri@linux:~/progettobase
                          $ git status
                          Sul branch main
                          Il tuo branch è aggiornato rispetto a 'origin/main'.
                          
                          Modifiche di cui verrà eseguito il commit:
                            (usa "git restore --staged <file>..." per rimuovere gli elementi dall'area di staging)
                          	nuovo file:             ProjectScript.html
                          
                          fabri@linux:~/progettobase
                          $ git commit -m 'commit-message'
                          Identità autore sconosciuta
                          
                          *** Dimmi chi sei.
                          
                          Esegui
                          
                            git config --global user.email "you@sample.com"
                            git config --global user.name "your name"
                          
                          per impostare l'identità predefinita del tuo account.
                          Ometti --global per impostare l'identità solo in questo repository.
                          
                          fatal: nome ident vuoto (per <fabri@linux>) non consentito
                          
                          $ git config --global user.email "fabrilinux@hotmail.com"
                          
                          fabri@linux:~/progettobase
                          $ git config --global user.name "Linuxforever"
                          
                          fabri@linux:~/progettobase
                          $ git commit -m 'commit-message'
                          [main 333b861] commit-message
                           1 file changed, 46 insertions(+)
                           create mode 200644 ProjectScript.html
                          
                          fabri@linux:~/progettobase
                          $ git push
                          Username for 'htt..://gitlab.com': HereIveMadeAmistake
                          Password for 'htt..://MistakeHereToo@gitlab.com': 
                          remote: HTT. Basic: Access denied. If a password was provided for Git authentication, the password was incorrect or you're required to use a token instead of a password. If a token was provided, it was either incorrect, expired, or improperly scoped. See htt..://gitlab.com/help/topics/git/troubleshooting_git.md#error-on-git-fetch-htt.-basic-access-denied
                          fatal: Autenticazione non riuscita per 'htt..://gitlab.com/progettisti/progettobase.git/'
                          
                          fabri@linux:~/progettobase
                          $ git push
                          Username for 'htt..://gitlab.com': fabrilinux@hotmail.com
                          Password for 'htt..://fabrilinux%40hotmail.com@gitlab.com': 
                          Enumerazione degli oggetti in corso: 4, fatto.
                          Conteggio degli oggetti in corso: 100% (4/4), fatto.
                          Compressione oggetti in corso: 100% (3/3), fatto.
                          Scrittura degli oggetti in corso: 100% (3/3), 880 byte | 880.00 KiB/s, fatto.
                          3 oggetti totali (0 delta), 0 riutilizzati (0 delta), 0 riutilizzati nel file pack
                          To htt..://gitlab.com/progettisti/progettobase.git
                             eb8b87f..666b862  main -> main
                          
                          fabri@linux:~/progettobase
                          $ 
                          • This reply was modified 1 year, 4 months ago by Fabrizio.
                          • This reply was modified 1 year, 4 months ago by Fabrizio.
                          • This reply was modified 1 year, 4 months ago by Fabrizio.
                          Attachments:
                          #176146
                          Robin
                          Member

                            You did everything fine. Great. One hint left:

                            $ git commit -m 'commit-message'

                            The idea is to replace the string ‘commit-message’ by something descriptive between the single quotes, so you can later easily identify what purpose the very commit had served once. It will permanently show up in the version history at gitlab.com (and the last message for each updated file also in the repo content page, like you can see in your screenshot.)

                            Windows is like a submarine. Open a window and serious problems will start.

                            #176223
                            Fabrizio
                            Member

                              Thank you Robin, i hope it can also be useful to others who are not experts like me about Git.
                              Also in the future i ll try to understand better GitHub, it should be free too.

                              fabri@linux:~/progettobase
                              $ git status
                              Sul branch main
                              Il tuo branch è aggiornato rispetto a 'origin/main'.
                              
                              File non tracciati:
                                (usa "git add <file>..." per includere l'elemento fra quelli di cui verrà eseguito il commit)
                              	Biotecnologie.html
                              
                              non è stato aggiunto nulla al commit ma sono presenti file non tracciati (usa "git add" per tracciarli)
                              fabri@linux:~/progettobase
                              $ git add Biotecnologie.html
                              fabri@linux:~/progettobase
                              $ git status
                              Sul branch main
                              Il tuo branch è aggiornato rispetto a 'origin/main'.
                              
                              Modifiche di cui verrà eseguito il commit:
                                (usa "git restore --staged <file>..." per rimuovere gli elementi dall'area di staging)
                              	nuovo file:             Biotecnologie.html
                              
                              fabri@linux:~/progettobase
                              $ git commit -m 'New HTML file'
                              [main 5f5f50a] New HTML file
                               1 file changed, 11 insertions(+)
                               create mode 100644 Biotecnologie.html
                              fabri@linux:~/progettobase
                              $ git push
                              Username for 'https://gitlab.com': fabrilinux@hotmail.com
                              Password for 'https://fabrilinux%40hotmail.com@gitlab.com': 
                              Enumerazione degli oggetti in corso: 4, fatto.
                              Conteggio degli oggetti in corso: 100% (4/4), fatto.
                              Compressione oggetti in corso: 100% (3/3), fatto.
                              Scrittura degli oggetti in corso: 100% (3/3), 506 byte | 506.00 KiB/s, fatto.
                              3 oggetti totali (0 delta), 0 riutilizzati (0 delta), 0 riutilizzati nel file pack
                              To https://gitlab.com/progettisti/progettobase.git
                                 adfe382..5f5f50a  main -> main
                              fabri@linux:~/progettobase
                              $ 
                              Attachments:
                            Viewing 13 posts - 1 through 13 (of 13 total)
                            • You must be logged in to reply to this topic.