Files
git-templates/info.md
2025-06-02 16:19:59 -04:00

4.1 KiB

#Gitea Info

819BJLHbhMXTGQ

jonpressnell@duck.com

git --version cd gitea_docs git init git remote add origin http://omv800:3001/press7174/git-templates.git git add .

These are common Git commands used in various situations:

start a working area (see also: git help tutorial) clone Clone a repository into a new directory init Create an empty Git repository or reinitialize an existing one

work on the current change (see also: git help everyday) add Add file contents to the index mv Move or rename a file, a directory, or a symlink restore Restore working tree files rm Remove files from the working tree and from the index

examine the history and state (see also: git help revisions) bisect Use binary search to find the commit that introduced a bug diff Show changes between commits, commit and working tree, etc grep Print lines matching a pattern log Show commit logs show Show various types of objects status Show the working tree status

grow, mark and tweak your common history backfill Download missing objects in a partial clone branch List, create, or delete branches commit Record changes to the repository merge Join two or more development histories together rebase Reapply commits on top of another base tip reset Reset current HEAD to the specified state switch Switch branches tag Create, list, delete or verify a tag object signed with GPG

collaborate (see also: git help workflows) fetch Download objects and refs from another repository pull Fetch from and integrate with another repository or a local branch push Update remote refs along with associated objects

git remote add origin http://omv800:3001/press7174/git-templates.git git add README.md git commit -m "first commit test" git push -u origin main git checkout -b main Switched to a new branch 'main' (base) PS C:\Users\jpressnell\OneDrive - Blue Point Capital Partners\Documents\Coding\gitea_docs> git push -u origin main warning: use of unencrypted HTTP remote URLs is not recommended; see https://aka.ms/gcm/unsaferemotes for more information. Enumerating objects: 3, done. Counting objects: 100% (3/3), done. Writing objects: 100% (3/3), 212 bytes | 70.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) remote: . Processing 1 references remote: Processed 1 references in total To http://omv800:3001/press7174/git-templates.git

  • [new branch] main -> main branch 'main' set up to track 'origin/main'. (base) PS C:\Users\jpressnell\OneDrive - Blue Point Capital Partners\Documents\Coding\gitea_docs> git add . warning: in the working copy of 'git-quick-reference.md', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'gitignore-templates.md', LF will be replaced by CRLF the next time Git touches it (base) PS C:\Users\jpressnell\OneDrive - Blue Point Capital Partners\Documents\Coding\gitea_docs> git commit -m "templates1" [main a12369d] templates1 3 files changed, 1236 insertions(+) create mode 100644 git-quick-reference.md create mode 100644 gitea_setup.md create mode 100644 gitignore-templates.md (base) PS C:\Users\jpressnell\OneDrive - Blue Point Capital Partners\Documents\Coding\gitea_docs> git push -u origin main Enumerating objects: 6, done. Counting objects: 100% (6/6), done. Delta compression using up to 12 threads Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 9.27 KiB | 3.09 MiB/s, done. Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) remote: . Processing 1 references remote: Processed 1 references in total To http://omv800:3001/press7174/git-templates.git 83b0f46..a12369d main -> main branch 'main' set up to track 'origin/main'. (base) PS C:\Users\jpressnell\OneDrive - Blue Point Capital Partners\Documents\Coding\gitea_docs> git remote -v origin http://omv800:3001/press7174/git-templates.git (fetch) origin http://omv800:3001/press7174/git-templates.git (push) (base) PS C:\Users\jpressnell\OneDrive - Blue Point Capital Partners\Documents\Coding\gitea_docs>

git add . git commit