今日已更新 35 条资讯 | 累计 37284 条内容
关于我们

标签:#github

找到 1537 篇相关文章

AI 资讯

My First GitHub Project: From a Local Folder to GitHub Using Git and SSH

My First GitHub Project: From a Local Folder to GitHub Using Git and SSH Introduction This week I learned how to use Git, Git Bash, GitHub and setting up SSH Keys . Before this, I knew about GitHub but I did not really understand how a project moves from a folder on my computer to GitHub. A simple way I now understand the relationship is: Git manages the history of my project while GitHub provides an online home for the project. In this article, I will explain the steps I followed to create a simple project locally and push it to GitHub. Creating My Project I started by creating a folder for my project using Git Bash. mkdir Kenya-Hospital-Records-Analysis cd Kenya-Hospital-Records-Analysis Inside the folder, I created a README.md file and a folder called data . My project looked like this: Kenya-Hospital-Records-Analysis/ ├── README.md └── data/ The README.md file is where I can explain what my project is about while the data folder can be used to store datasets. In the data folder i uploaded an excel file called Kenyan_Hospital_Health_Records How to use Git The next step was to make Git start tracking my project. I did this using: git init I then used: git status This helped me see which files Git was tracking and which files had not yet been added. To add my files, I used: git add . I then saved the changes to Git using a commit: git commit -m "Initial commit" One thing I learned is that a commit is like saving a checkpoint of my project. The commit message helps explain what changes I made. Connecting Git to GitHub while generating SSH Keys To push my local project to GitHub, I needed a secure way for my computer to communicate with my GitHub account. I used SSH (Secure Shell). I first generated an SSH key on my computer and then added the public key to my GitHub account. An SSH key normally consists of two parts: Private key – stays securely on my computer. Public key – can be added to GitHub. One important lesson was that the private key should never be shared.

2026-08-23 原文 →
开源项目

🔥 shy3130 / tick-stock-panel - TSP自托管、零运维的 A 股「选股 + 监控 + 回测」量化工作台 | 基于 TickFlow 数据源 | LLM能力

GitHub热门项目 | TSP自托管、零运维的 A 股「选股 + 监控 + 回测」量化工作台 | 基于 TickFlow 数据源 | LLM能力驱使策略定制+个股分析+复盘 | 自由接入第三方数据源与个性化扩展数据 | 个人开源 ,非TickFlow官方项目 | Stars: 3,477 | 82 stars today | 语言: Python

2026-08-23 原文 →
AI 资讯

My First GitHub Project: From a Local Folder to GitHub Using Git & SSH

Introduction It is important to note that Git and GitHub are not the same thing and have different purposes. Git is a version control system that runs on my PC and helps track changes to files. GitHub on the other hand is an online platform where Git repositories can be stored , shared , and collaborated on . A Git repository is a storage space in a PC that contains project’s files along with the entire history of changes made to them. Therefore, Git as the tool used to manage the history of a project locally (on a PC) , while GitHub provides a remote location where I can store and access that project. This process requires Git the PC is linked to a GitHub account through SSH (Secure Shell) , a cryptographic network protocol that enables secure remote access, command execution, and file transfers over unsecured networks. This article is meant to explain how I created a project in a local folder, turned it into a Git repository , connected it to GitHub , configured SSH authentication, and pushed my work to the remote repository. 1. Starting With The Local Project Check File Location First, I needed to check my current location by running the command pwd . For that I got, /c/Users/ezraw , the folder that I was on currently. A directory is simply a folder. Your working directory is the folder your terminal is currently operating inside. Listing Files and Folders in the current location I ran the command, ls and got results of every folder in my working directory. Moving to Desktop My Desktop was my preferred location for the project on my PC. My Desktop was located in OneDrive therefore I ran cd OneDrive/ . Thereafter, I ran cd Desktop to access my preferred location for the file I want to create. N/B: cd means Change Directory , and it's the command used to move into the folder one wants to access. Verify Location To verify if I was in my preferred folder, My Desktop, I ran pwd and got /c/Users/ezraw/OneDrive/Desktop thus confirming I was in the right location. Creati

2026-08-23 原文 →
AI 资讯

My First GitHub Project: From a Local Folder to GitHub Using Git and SSH.

Introduction The following is a step-by-step process of how i was able create my first GitHub project from a local folder and upload it to Github using Git and SSH. Creating a local folder using git. Using Gitbash, I wanted to see the list of files and directories on my pc. I used the command function ls which enabled me to see them. Since I wanted to create a folder in Desktop under OneDrive, I used firstly cd OneDrive which allowed me to access OneDrive then used cd Desktop allowing me to access Desktop. Basically the command function cd (change of directory) allows one to access a directory that is required while Using cd .. allows one to go to the previous directory. Using mkdir Kenya-Hospital-Health-Records-Project I was able to create a folder under the name Kenya-Hospital-Health-Records-Project. We can use hyphens, underscores and quotes in names that contain more than one word because inclusion of spaces will create separate folders instead of the required one folder. Using cd Kenya-Hospital-Health-Records-Project to access our folder, I created another folder inside it called data using mkdir data . Creating a README file I created Readme file using touch README.md where .md denotes mean Markdown. A Readme file would be able to explain the context of our project on Github and to do this we use the command function echo to print text. I used echo "# KENYA HEALTH RECORDS ANALYSIS" > README.md to indicate title of the README file and using # to indicate it is as the main title. Using echo "## Project Overview" >> README.md I was able to mark it as a sub heading. using > instead of >> would have simply replaced our Tittle an used the subtitle as the main tittle hence I used >> to simply add and not replace. To see the contents we have written so far we use cat README.md . I also incorporated nano README.md to edit some parts where i saw fit to edit. Initializing git Then I used git init which is used to treat the folder as a git repository creating a hidden fol

2026-08-23 原文 →
AI 资讯

My First GitHub Project: From a Local Folder to GitHub Using Git and SSH

I thought that when i join Lux Dev i would jump straight into building complex data pipelines and getting to understand kafka, kafka sounds like a really cool name, but if there's one thing I'm realizing quickly, it's that before you can orchestrate complex data pipelines or deploy web scrapers, you have to master the absolute basics of version control. This week, I was working on setting up a new local project, a health records analysis and pushing it to GitHub entirely through the command line. If you're just starting out with version control, here is exactly how I took a project from a completely blank folder on my desktop to a live repository on GitHub, including testing SSH keys. Setting Up the Local Project First, I needed a place for my project to live. I opened my bash terminal, navigated to my Desktop using he cd command, and created the main project folder along with a sub-folder for the data named Data. cd Desktop mkdir -p Kenya_Hospital_Health_Records_Project/Data cd Kenya_Hospital_Health_Records_Project With the directories created, I copied and pasted my Kenya_Hospital_Health_Records_Project.csv data set we were given in class into the Data folder. Writing the README via Terminal Instead of opening a text editor, I decided to build out my README.md right from the command line using echo command. The > operator adds new text the file, while >> adds text to the already creaed line. echo "# KENYA HEALTH RECORDS ANALYSIS" > README.md echo "## Project Overview" >> README.md echo "This project analyses health records of a hospital" >> README.md I also added a quick list of tools and challenges using the same method and used the cat README.md command to print the contents of the file directly in the terminal to confirm that everything looked right. Initializing and Staging Now it was time to turned this folder into a tracked Git repository. git init Running git status showed that my Data/ folder and README.md were untracked. To stage them for my first commit,

2026-08-23 原文 →
AI 资讯

CrowdGPT - Let's train the next ChatGPT together :D

Hello I'm creating CrowdGPT , an open-source project which allows training of a LLM (Large Language Model) in a decentralized way, where each user contributes to making the AI better with whatever data they want. The idea is simple: instead of one machine owning the entire training run, let many people contribute small training jobs and periodically merge those updates into a shared model. The system is based on a centralized server (lightweight) that receives every client training, then "merge them back" to the main model. This system prevents threats or malicious updates by doing cross-client verifications (provides a proof of work). The users that train the model are being put on a leaderboard, rewarding their contribution. Data is taken from a curated dataset on Hugging Face (which means no personal data is ever used during training). However, users can push new text to this dataset (which is then moderated and validated). If you're curious, here is the GitHub: https://github.com/Vxtzq/CrowdGPT Here is the website: https://www.crowdgpt.net The best way to help me is to either: Give feedback on what must be changed to make it a fully finished project. I'm mainly looking for criticism: what would stop you from running this on your own GPU? Contribute to the project by becoming a part of the network (coming soon) Star the repo on GitHub ⭐ It helps a lot :)

2026-08-23 原文 →
开源项目

🔥 shy3130 / tickflow-stock-panel - TSP自托管、零运维的 A 股「选股 + 监控 + 回测」量化工作台 | 基于 TickFlow 数据源 | LLM能力

GitHub热门项目 | TSP自托管、零运维的 A 股「选股 + 监控 + 回测」量化工作台 | 基于 TickFlow 数据源 | LLM能力驱使策略定制+个股分析+复盘 | 自由接入第三方数据源与个性化扩展数据 | 个人开源 ,非TickFlow官方项目 | Stars: 3,448 | 90 stars today | 语言: Python

2026-08-23 原文 →
AI 资讯

MY FIRST GITHUB PROJECT

Introduction In this article I will explain my practical experience of creating Git repository,connecting it to GitHub using SSH,commiting my files and pushing the project to a remote repository. Step 1 :Creating My Local Project The first step is to create a folder through file explorer which as the best option for me and name it (my-project) Next step was to open GitBash and run the command cd my- project To open the file directory Step 2 : Initializing Git This is to tell Git that my my-project folder should become a Git repository. To initialize Git I ran the command: git init Step 3:Repository Status Check After initializing Git, I used : git status This command is very useful as it can be used throughout the process it tells what's happening inside my repository. At some point people may encounter: On branch main Nothing to commit, working on a tree clean It could seem like an error,however I learned that this means Git has checked my project and found no changes that need to be committed. Another situation that I encountered is where Git told me that the older my project was already initialized .This taught me to use the command: git status To understand the current status of my project. Step 4:Connecting GitHub Using SSH The next thing I learnt was on how to generate SSH key which will be used to connect my computer securely to GitHub. To generate an SSH key I ran the command: ssh-keygen -t ed25519 -C "your_email@example.com" Under the double quotes use the email used for your GitHub account. Then press entre to save it on the default location. You'll then be told to enter passphrase which is simply a password,create a simple one which you can memorize easily like 1234.Then entre it again when asked. You then start the SSH agent Run; eval "$(ssh-agent -s)" Then add your SSH keyy Run: ssh-add ~/ .ssh/id_ed2559 It will ask you to entre the passphrase you created. Copy your public key y running the command: cat ~ .ssh/id_ed25519 .pub Add the entire line generat

2026-08-22 原文 →
AI 资讯

Understanding Gitworkflow

Git Workflow Git is a local version control system that tracks code changes, while GitHub is a cloud-based platform used to host those changes and collaborate with others. Together, they form the backbone of modern software development by allowing multiple developers to work on the same codebase simultaneously without overwriting each others work Working directory of git This is the actual, physical folder on your computer's filesystem where you view, create, edit, and delete your project files. It can either contain : Tracked files : files that Git actively monitors and includes in version control history Untracked files : are any files in your working directory that have not yet been added to your Git repository's snapshots or staging area. Staging Staging is the process of preparing specific file changes to be included in your next commit. Reasons for staging Atomic Commits : It allows you to group related changes together. If you fix a bug and work on a new feature at the same time, you can stage and commit the bug fix separately from the incomplete feature. Review Mechanism : It provides a safe buffer zone to double-check exactly what lines of code are moving forward. Work Checkpointing : You can stage a file at a certain point of success, continue experimenting on that file in your working directory, and still preserve your staged checkpoint. Staging commands git add "filename" Stages a specific file. git init Manages project. git status To see what files are currently sitting in staging vs your working directory. git diff Shows differences between your working directory and your staging area. git diff --staged Shows differences between your staging area and your last commit git restore --staged "filename" Removes Changes from Staging Commit and push To save your local changes and upload them to git you need to stage your changes, commit them locally, and push them to the server. Commands used in commit and push The block of code below is used in the given ord

2026-08-22 原文 →
AI 资讯

Understanding the Git Workflow: Working Directory, Staging, Commit and Push

Introduction Git is a version control system that tracks changes in code. When writing code we need to save every significant change or feature that does a certain function as a commit that can be reverted to if we ever need that instance of the code. This helps programmers to traverse code since nothing is ever lost in the product life cycle of the project. It also helps in debugging since we have a copy of the previous working state. So how do we start out with git you ask. Install git Install git for your specific operating system. After installing git you will note that the file comes with git bash which is a command line terminal that is used to run commands or instruct the version control git. To ensure that git has been installed open git bash and run the command git --version which will return the version of git installed Download Visual Studio Code Install VS code a text editor for writing code. Create a github account GitHub is a cloud-based platform used by developers to store, track, and collaborate on software code. It operates as a hosting service for git, an open-source version control system that tracks changes made to files. Head over to github and create and account Creating a directory tracked by git On git bash run mkdir <filename> . This will create a folder ie the project that will contain your files of code. Enter the folder through cd <filename> and create a file README.md file which explains what this project does touch README.md . Run the command ls to list files in the directory Open the vs code from terminal by running code . and edit the README.md file. Now the file is ready to be tracked by git on github Staging, committing and pushing We now need to initialize the directory making sure that git is now tracking the file. Running the commands ls-la will confirm that git has been initialized in the repository. There are two ways of doing this either via the text editor VS code or the terminal . Let us go through both. 1. VS code Make sure

2026-08-22 原文 →