└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # gitHub-instructions 2 | guide for local repo alignment 3 | 4 | 5 | ### Install GitHub CLI 6 | winget upgrade --id GitHub.cli 7 | 8 | ### Git basic commands 9 | git --version 10 | git config --global user.name "Fabio Matricardi" 11 | git config --global user.email "fabio.matricardi@gmail.com" 12 | 13 | 14 | ## GITHUB CLI MANUAL 15 | https://cli.github.com/manual/gh_auth_login 16 | 17 | 18 | # Start interactive setup 19 | gh auth login 20 | 21 | 22 | 23 | ## CREATE A GITIGNORE 24 | https://stackoverflow.com/questions/27850222/what-is-gitignore 25 | 26 | https://git-scm.com/docs/gitignore 27 | 28 | 1. Init a new repo 29 | ``` 30 | git init 31 | ``` 32 | 33 | 34 | 2.Create a remote GitHub repo 35 | ``` 36 | gh repo create --source=. --public --description "test advanced RAG AI" 37 | ``` 38 | 39 | ✓ Created repository fabiomatricardi/KSdocs on GitHub 40 | https://github.com/fabiomatricardi/KSdocs 41 | ✓ Added remote https://github.com/fabiomatricardi/KSdocs.git 42 | 43 | ``` 44 | git add . 45 | git status 46 | git commit -m "comment to commit" 47 | git branch -M main 48 | git push -u origin main 49 | ``` 50 | 51 | --------------------------------------------------------------------------------