Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. a rookie question about GitHub

a rookie question about GitHub

Scheduled Pinned Locked Moved The Lounge
questionsysadmincollaborationannouncement
15 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Southmountain
    wrote on last edited by
    #1

    I installed GitHub on my desktop and use TortoiseGit as client. each time I committed my new version to the local folder for this project. then I commit the same version to GitHub website. My question is: does GitHub only have my most recent version only? does GitHub still keep all previous versions of my projects? I used SVN server for long time and heading to GitHub...

    diligent hands rule....

    P R M J M 8 Replies Last reply
    0
    • S Southmountain

      I installed GitHub on my desktop and use TortoiseGit as client. each time I committed my new version to the local folder for this project. then I commit the same version to GitHub website. My question is: does GitHub only have my most recent version only? does GitHub still keep all previous versions of my projects? I used SVN server for long time and heading to GitHub...

      diligent hands rule....

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Isn't that the whole point?

      1 Reply Last reply
      0
      • S Southmountain

        I installed GitHub on my desktop and use TortoiseGit as client. each time I committed my new version to the local folder for this project. then I commit the same version to GitHub website. My question is: does GitHub only have my most recent version only? does GitHub still keep all previous versions of my projects? I used SVN server for long time and heading to GitHub...

        diligent hands rule....

        R Offline
        R Offline
        RickZeeland
        wrote on last edited by
        #3

        Yes GitHub keeps previous versions:

        Quote:

        On GitHub, you can see the commit history of a repository by: Navigating directly to the commits page of a repository. Clicking on a file, then clicking History, to get to the commit history for a specific file.

        See: About commits - GitHub Docs[^]

        S 1 Reply Last reply
        0
        • S Southmountain

          I installed GitHub on my desktop and use TortoiseGit as client. each time I committed my new version to the local folder for this project. then I commit the same version to GitHub website. My question is: does GitHub only have my most recent version only? does GitHub still keep all previous versions of my projects? I used SVN server for long time and heading to GitHub...

          diligent hands rule....

          M Offline
          M Offline
          Mircea Neacsu
          wrote on last edited by
          #4

          Southmountain wrote:

          does GitHub still keep all previous versions of my projects?

          It sure does. It's a version control system after all.

          Southmountain wrote:

          then I commit the same version to GitHub website.

          Technically, you don't commit to GitHub; you just push your changes to GitHub. With Git you have two complete repositories with all your code history, one on your desktop and another on GitHub. When you commit on your desktop the two repositories are out of sync, but then you push the changes to bring them back in sync.

          Mircea

          S C 2 Replies Last reply
          0
          • S Southmountain

            I installed GitHub on my desktop and use TortoiseGit as client. each time I committed my new version to the local folder for this project. then I commit the same version to GitHub website. My question is: does GitHub only have my most recent version only? does GitHub still keep all previous versions of my projects? I used SVN server for long time and heading to GitHub...

            diligent hands rule....

            J Offline
            J Offline
            Jacquers
            wrote on last edited by
            #5

            It will have all the versions. I suggest getting more familiar with how Git works. Once you commit you also have to push. Maybe a client like Sourcetree would be useful for you. [Learn Git - Tutorials, Workflows and Commands | Atlassian](https://www.atlassian.com/git)

            S 1 Reply Last reply
            0
            • R RickZeeland

              Yes GitHub keeps previous versions:

              Quote:

              On GitHub, you can see the commit history of a repository by: Navigating directly to the commits page of a repository. Clicking on a file, then clicking History, to get to the commit history for a specific file.

              See: About commits - GitHub Docs[^]

              S Offline
              S Offline
              Southmountain
              wrote on last edited by
              #6

              thanks, the link is great!:rose:

              diligent hands rule....

              1 Reply Last reply
              0
              • M Mircea Neacsu

                Southmountain wrote:

                does GitHub still keep all previous versions of my projects?

                It sure does. It's a version control system after all.

                Southmountain wrote:

                then I commit the same version to GitHub website.

                Technically, you don't commit to GitHub; you just push your changes to GitHub. With Git you have two complete repositories with all your code history, one on your desktop and another on GitHub. When you commit on your desktop the two repositories are out of sync, but then you push the changes to bring them back in sync.

                Mircea

                S Offline
                S Offline
                Southmountain
                wrote on last edited by
                #7

                thanks for the explanation!:rose:

                diligent hands rule....

                1 Reply Last reply
                0
                • J Jacquers

                  It will have all the versions. I suggest getting more familiar with how Git works. Once you commit you also have to push. Maybe a client like Sourcetree would be useful for you. [Learn Git - Tutorials, Workflows and Commands | Atlassian](https://www.atlassian.com/git)

                  S Offline
                  S Offline
                  Southmountain
                  wrote on last edited by
                  #8

                  thanks for the link! it is very comprehensive!:rose:

                  diligent hands rule....

                  1 Reply Last reply
                  0
                  • S Southmountain

                    I installed GitHub on my desktop and use TortoiseGit as client. each time I committed my new version to the local folder for this project. then I commit the same version to GitHub website. My question is: does GitHub only have my most recent version only? does GitHub still keep all previous versions of my projects? I used SVN server for long time and heading to GitHub...

                    diligent hands rule....

                    M Offline
                    M Offline
                    Marc Clifton
                    wrote on last edited by
                    #9

                    Southmountain wrote:

                    then I commit the same version to GitHub website.

                    Just to follow up on the excellent replies, if you only "commit" your changes to the repo, nothing really happens except that your local version history is updated to reflect the latest change. You have to "push" your changes to GitHub to sync it with your local version changes. So make sure you "push!" :laugh:

                    Latest Articles:
                    A Lightweight Thread Safe In-Memory Keyed Generic Cache Collection Service A Dynamic Where Implementation for Entity Framework

                    1 Reply Last reply
                    0
                    • S Southmountain

                      I installed GitHub on my desktop and use TortoiseGit as client. each time I committed my new version to the local folder for this project. then I commit the same version to GitHub website. My question is: does GitHub only have my most recent version only? does GitHub still keep all previous versions of my projects? I used SVN server for long time and heading to GitHub...

                      diligent hands rule....

                      K Offline
                      K Offline
                      Keefer S
                      wrote on last edited by
                      #10

                      It can definitely be a little challenging at first. There are some awesome videos and tutorials online that explain it all. The very purpose of Github is to be a "versioning" system, so yes it will indeed retain all versions for you. Learn the command line interface as well. You can do some pretty amazing thing with it. As with anything that is a little complex, if you don't practice and use Github regularly, you will lose familiarity with the process. Good luck!:cool:

                      1 Reply Last reply
                      0
                      • S Southmountain

                        I installed GitHub on my desktop and use TortoiseGit as client. each time I committed my new version to the local folder for this project. then I commit the same version to GitHub website. My question is: does GitHub only have my most recent version only? does GitHub still keep all previous versions of my projects? I used SVN server for long time and heading to GitHub...

                        diligent hands rule....

                        J Offline
                        J Offline
                        jschell
                        wrote on last edited by
                        #11

                        Southmountain wrote:

                        TortoiseGit as client...my most recent version only?

                        You can see the version history via the 'log' in TortoiseGit. At least I believe that is what it is called - if not poke around to find it. Also allows you to diff the versions. You can also see it via the command line but I consider that, for this case, much harder to use.

                        1 Reply Last reply
                        0
                        • S Southmountain

                          I installed GitHub on my desktop and use TortoiseGit as client. each time I committed my new version to the local folder for this project. then I commit the same version to GitHub website. My question is: does GitHub only have my most recent version only? does GitHub still keep all previous versions of my projects? I used SVN server for long time and heading to GitHub...

                          diligent hands rule....

                          J Offline
                          J Offline
                          jochance
                          wrote on last edited by
                          #12

                          You might check out some kind of visual tool for source control. SourceTree is one I know about. It will do/integrate with Git. Being able to visualize it, having buttons to do what (are sometimes) esoteric console commands, and being able to see the result of those button presses reflected in a visual way is probably not the worst thing that could happen for you trying to learn.

                          1 Reply Last reply
                          0
                          • M Mircea Neacsu

                            Southmountain wrote:

                            does GitHub still keep all previous versions of my projects?

                            It sure does. It's a version control system after all.

                            Southmountain wrote:

                            then I commit the same version to GitHub website.

                            Technically, you don't commit to GitHub; you just push your changes to GitHub. With Git you have two complete repositories with all your code history, one on your desktop and another on GitHub. When you commit on your desktop the two repositories are out of sync, but then you push the changes to bring them back in sync.

                            Mircea

                            C Offline
                            C Offline
                            charlieg
                            wrote on last edited by
                            #13

                            is it just me or is this MS disease? Rename the same basic function...

                            Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

                            M 1 Reply Last reply
                            0
                            • C charlieg

                              is it just me or is this MS disease? Rename the same basic function...

                              Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

                              M Offline
                              M Offline
                              Mircea Neacsu
                              wrote on last edited by
                              #14

                              Well, in this case I wouldn't put this diagnostic. If you look at the general philosophy of Git, "commit" and "push" are quite different operations. Commit brings changes under source control while "push" distributes those changes to any number of remote repositories that have been configured. Keep in mind that Git is a distributed version control system so it needed a name for the distribution part.

                              Mircea

                              C 1 Reply Last reply
                              0
                              • M Mircea Neacsu

                                Well, in this case I wouldn't put this diagnostic. If you look at the general philosophy of Git, "commit" and "push" are quite different operations. Commit brings changes under source control while "push" distributes those changes to any number of remote repositories that have been configured. Keep in mind that Git is a distributed version control system so it needed a name for the distribution part.

                                Mircea

                                C Offline
                                C Offline
                                charlieg
                                wrote on last edited by
                                #15

                                Thank you for the clarification. A push now makes sense in the context of team development.

                                Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups