Hi, AvatarShala aims to build a repository of AI/ML codes.
Steps to create and initialize the repository in GitHub. [ -- First create a github account. -- Install a git CLI (gitbash) by searching git cli in google. -- Open Command Prompt (in windows) and enter "git --version" to check if cli is installed correctly. -- You can interact with git repository using Command Prompt or (gitlab) now.
First-Time Git Setup
check if global config exists
$ git config user.name John Doe
Now that you have Git on your system, you’ll want to do a few things to customize your Git environment. You should have to do these things only once on any given computer; they’ll stick around between upgrades. You can also change them at any time by running through the commands again.
Git comes with a tool called git config that lets you get and set configuration variables that control all aspects of how Git looks and operates.
The first thing you should do when you install Git is to set your user name and email address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:
$ git config --global user.name "John Doe" $ git config --global user.email "[email protected]"
Again, you need to do this only once if you pass the --global option, because then Git will always use that information for anything you do on that system. If you want to override this with a different name or email address for specific projects, you can run the command without the --global option when you’re in that project.
Many of the GUI tools will help you do this when you first run them. ]
- Create a new repository (for example: avatarshala) in your github.
- create a local directory (for eg: local_avatarshala) and change working directory of gitbash (or Command Prompt) to local_avatarshala.
- Create a README.md file in local_avatarshala.
- git init
- git status #shows the untracked and tracked files
- git add README.md
- git status
- git commit -m "first commit"
- git status
- git branch [shows master branch]
- git branch -M main #renames master branch to main branch
- git remote add origin https://github.com/avatarshala/avatarshala.git #maps local repo to the remote repository
- git remote -v #shows origin mapped to remote
- git push origin main
###################################################################### …or create a new repository on the command line echo "#Some Message >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/avatarshala/avatarshala.git git push -u origin main
…or push an existing repository from the command line git remote add origin https://github.com/avatarshala/QA_ChatBot.git git branch -M main git push -u origin main
##############################################################