137_Docing-Test/doc/Notes.md
2026-05-29 20:13:41 +10:00

1.4 KiB

Docing Testing

Using Git on Forgejo Server

The Forgejo Server

Create project

http://192.168.1.210:3000/stephen/137_Docing-Test

this creates an empty repository

On remote site MacBook

Open terminal on 01_Projects in the terminal

stephenlohning@Scotty 01_Projects % git clone http://192.168.1.210:3000/stephen/137_Docing-Test
Cloning into '137_Docing-Test'...
warning: You appear to have cloned an empty repository.

This creates a directory called "137_Docing-Test" the same as the repository. There only one file in the directory

stephenlohning@Scotty 137_Docing-Test % ls -la
total 0
drwxr-xr-x    3 stephenlohning  staff    96 May 29 19:42 .
drwxr-xr-x@ 158 stephenlohning  staff  5056 May 29 19:42 ..
drwxr-xr-x    9 stephenlohning  staff   288 May 29 19:42 .git
stephenlohning@Scotty 137_Docing-Test % git remote -v
origin  http://192.168.1.210:3000/stephen/137_Docing-Test (fetch)
origin  http://192.168.1.210:3000/stephen/137_Docing-Test (push)
stephenlohning@Scotty 137_Docing-Test % git branch -M main
stephenlohning@Scotty 137_Docing-Test % touch .gitignore
stephenlohning@Scotty 137_Docing-Test % git config --global push.followTags true
stephenlohning@Scotty 137_Docing-Test % 

Create structure you want, template

stephenlohning@Scotty 137_Docing-Test % tree
.
├── Readme.md
└── doc
    ├── Notes.md
    ├── Notes.pdf
    └── images

3 directories, 3 files