User Tools

Site Tools


howto:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:git [2021/12/26 10:35] – [Test Scenario] va7fihowto:git [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Git ====== 
-===== Test Scenario ===== 
-  * Create two files in a ''remote'' folder to simulate the wiki install on the server. 
  
-  * Change their permissions and ownership to match what's on the server:<code bash> 
-~/gittest/remote$ ls -l 
-total 24 
--rwxrwx--- 1 ptruchon www-data 26 Dec 26 10:20 file1.txt 
--rwxrwx--- 1 ptruchon www-data 26 Dec 26 10:20 file2.txt 
-</code> 
- 
-  * Initialize git:<code bash> 
-git init 
-git add . 
-git commit -m 'initial commit on remote' 
-git log 
-commit 0e5ccdedd1c9188996aadad3a8e2be5a319ab789 (HEAD -> master) 
-Author: Patrick Truchon <patoo@rbox.me> 
-Date:   Sun Dec 26 10:21:24 2021 -0800 
- 
-    initial commit on remote 
-</code> 
- 
-  * Create a local folder and clone from remote:<code bash> 
-git clone ~/gittest/remote/ ~/gittest/local/ 
-</code> 
- 
-  * The log looks good:<code bash> 
-git log 
-ptruchon@ThinkPad-T440:~/gittest/local$ git log 
-commit 0e5ccdedd1c9188996aadad3a8e2be5a319ab789 (HEAD -> master, origin/master, origin/HEAD) 
-Author: Patrick Truchon <patoo@rbox.me> 
-Date:   Sun Dec 26 10:21:24 2021 -0800 
- 
-    initial commit on remote 
-</code> 
- 
-  * But the ''www-data'' group ownership wasn't preserved:<code bash> 
-~/gittest/local$ ls -l 
-total 24 
--rwxrwxr-x 1 ptruchon ptruchon 26 Dec 26 10:24 file1.txt 
--rwxrwxr-x 1 ptruchon ptruchon 26 Dec 26 10:24 file2.txt 
-</code> 
howto/git.1640543755.txt.gz · Last modified: by va7fi