User Tools

Site Tools


computing:git:new-repo-from-scratch

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
computing:git:new-repo-from-scratch [2026/08/28 08:45] – oscarcomputing:git:new-repo-from-scratch [2026/08/30 12:45] (current) – [Upload source tree] oscar
Line 9: Line 9:
 === .gitignore === === .gitignore ===
 Create in the root of the source tree a .gitignore file and add all the files and folders that need to be excluded from the upload to the repositories. Create in the root of the source tree a .gitignore file and add all the files and folders that need to be excluded from the upload to the repositories.
 +=== Setup user references ===
 +  $ git config --global user.email "oscar@oscardegroot.nl"
 +  $ git config --global user.name "Oscar de Groot"
 === Upload to local repo === === Upload to local repo ===
 <code> <code>
Line 22: Line 25:
 === Upload to remote repo === === Upload to remote repo ===
 <code> <code>
-git remote add origin http://192.168.178.96:3000/git-admin/homesite.git+git remote add origin http://192.168.178.86:3000/git-admin/homesite.git
 git push -u origin main git push -u origin main
 </code> </code>
Line 28: Line 31:
   * git push:  will push all committed files to the remote called "origin". "-u" sets the upstream tracking branch, linking your local main branch to origin/main. Once you do this once, future pushes and pulls on that branch can just be: git push; git pull. Instead of needing to specify origin main every time.   * git push:  will push all committed files to the remote called "origin". "-u" sets the upstream tracking branch, linking your local main branch to origin/main. Once you do this once, future pushes and pulls on that branch can just be: git push; git pull. Instead of needing to specify origin main every time.
 === Authorization === === Authorization ===
-The "git push -u origin main" command will prompt for a username/password. Use the forgejo main account (default is: git-admin / git-admin-passed).+The "git push -u origin main" command will prompt for a username/password. Use the forgejo main account (default is: **git-admin/git-admin-passwd**).
computing/git/new-repo-from-scratch.1787906757.txt.gz · Last modified: by oscar