Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1847  / 1 Year ago, tue, march 14, 2023, 3:20:33

a fairly basic question. I know that in general when you update Ubuntu distros, your files are saved. My question is specifically about git files. Do they have to be reinitialized or what is the process for making sure they are recognized by git on my local machine after upgrading Ubuntu distros?


I have 16.04, I believe, and am wanting to upgrade to 22.04 Ubuntu Mate. Not sure it matters.


More From » upgrade

 Answers
6

Always take a backup before doing anything major.
Also, you seem to be jumping a long release train. Either do an incremental upgrade as suggested in comments, or I'd personally recommend a fresh install.


Now that being said, files are file, regardless if they are git files, images or PDF. As long as you are keeping file in your home directory, or a separate partition, or anywhere else which is not considered a system directory, they should be safe.


For OS, a file is a file with some data in it. It is up to the program to make sense out of that data. git will understand files in a .git/ directory, and an image viewer will understand based on bit pattern in the file's preamble/header or file extension.


The OS doesn't care about what file types they are, and it wont touch them as long as they are outside system directories.



Do they have to be reinitialized or what is the process for making sure they are recognized by git on my local machine after upgrading Ubuntu distros?



No, you don't have to reinitialize anything. If you preserve your directory structure, you'll have .git directory in each of your projects, which is used by git to track.


Make sure that after update the following command work, if not then you have to reinstall git binaries (which I don't think will be a case you'll encounter)


git --version

[#332] Tuesday, March 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ettorina

Total Points: 439
Total Questions: 99
Total Answers: 131

Location: Vanuatu
Member since Wed, Oct 14, 2020
4 Years ago
ettorina questions
Thu, Sep 1, 22, 15:28, 2 Years ago
Mon, Mar 14, 22, 06:04, 2 Years ago
Sun, Jul 24, 22, 13:31, 2 Years ago
Fri, Aug 26, 22, 12:02, 2 Years ago
;