Reputation: 1049
I'am planning to create a git in my own server, but I need to know if its possible to create it and backup the final version of all the code to dropbox
This git will be in my own personal server
Thanks
Upvotes: 1
Views: 368
Reputation: 137460
Yes, definitely.
Git is a distributed version control system, meaning even local copy is a separate repository. To copy the whole repository (and its content), you only need to copy the main directory (with .git
directory at the top level of it).
Try it. Just create some repository, make some changes. Then copy the directory with your code (including .git
directory) somewhere else, make some changes (without pulling / pushing from / to remotes) and check if the history of these two separate copies differs. If yes, you are doing it correctly, because by copying repository's directory you have just created another repository :)
Upvotes: 2