Does anyone have a super easy way to backup a GITHUB repo (should it be the remote or the local?) that will be easy to reinstall if needs be, and will work without complications? I am new to the command line.
Thank you,
Josheir
Does anyone have a super easy way to backup a GITHUB repo (should it be the remote or the local?) that will be easy to reinstall if needs be, and will work without complications? I am new to the command line.
Thank you,
Josheir
Your local git repository and the git repository you host on GitHub act as a backup of each other by design.
If GitHub closes down, is hacked etc. clone your local repository on some other hosting service; if your computer passes away, check out the GitHub repository on any number of replacement computers. No commands fancier than clone, checkout, push and pull are involved.
For further redundancy you need three or more copies of your repository (in addition to your own local one and the GitHub one), which could be
For greater reliability you need automation. For example, a periodic task running on a internet facing server with its own git repository can pull changes from the GitHub repository and possibly push them to another public git hosting service.
Omae Wa Mou Shindeiru
Just now, LorenzoGatti said:
- a traditional backup of your computer (including your local repository directory, and if possible the whole working directory for completeness and convenience); restore by simply overwriting files
Where is my repository directory? I looked in the Default Repository Location and also clicked on the local Git Repository link but didn't see anything gitish.
And by working directory, will the folder for my project do? I'm using Visual Studio for C++. I never did understand the property pages :
Output Directory : $(SolutionDir)$(Platform)$(Configuration)\
Intermediate Directory : $(Platform)\$(Configuration)\
Thank you; some common stuff I should know I guess,
Josheir
You did mean my working folder for my Visual Studio Project?
4 hours ago, Josheir said:Does anyone have a super easy way to backup a GITHUB repo (should it be the remote or the local?) that will be easy to reinstall if needs be
A Git repository is just a bunch of folders on your disk. It can be backed up the same way any other collection of folders and files can be: copy it to offline storage media, back it up using a cloud backup service, et cetera. You don't need to treat it any differently.
2 hours ago, Josheir said:Where is my repository directory?
It's the root directory for your project.
2 hours ago, Josheir said:but didn't see anything gitish
Normally you won't. Git stores its metadata in a subdirectory of the root directory of any given repository. This subdirectory is named ".git" and is typically made invisible so you can't accidentally tamper with it via explorer.
2 hours ago, Josheir said:Output Directory
This is the directory where the final output files (built executables, et cetera) will be written to.
2 hours ago, Josheir said:Intermediate Directory
This is the directory where non-final output artifacts (object files, dependency information, files-to-clean-lists, other scratch files) are written.
3 hours ago, Josheir said:Output Directory : $(SolutionDir)$(Platform)$(Configuration)\
Intermediate Directory : $(Platform)\$(Configuration)\
Well while we're here...where are these variables defined at?
Thanks Jpetrie,
Josheir
5 minutes ago, Josheir said:Well while we're here...where are these variables defined at?
Right in one of the project settings panes.
Word of advice: if you try and backup your git repositories to Microsoft CloudDrive, it doesn't copy the .git directory, and you are left with just a collection of source files...
Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]