prateekvaish / ft-rhf Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://lab.github.com/githubtraining/uploading-your-project-to-github
Home Page: https://lab.github.com/githubtraining/uploading-your-project-to-github
Congratulations @prateekvaish, you've completed this course! ๐
Before I say good-bye, I want to recap all the tasks you've accomplished. You:
Now that you've moved your Git repository to GitHub, managing your repository and adding collaborators are common next steps. Here are some recommended courses we think you might be interested in:
Community Starter Kit
Hosting a project on GitHub enables you to share your work with millions of other developers. This course will walk you through the different items you can add to your repository to welcome new contributors and make it easier for them to report issues, suggest new features, or potentially submit a pull request!
Create a release based workflow
Now that you have a repository on GitHub learn how to utilize a release workflow to create new releases for your project through an efficient development workflow.
There's so much more you can do with GitHub, and you have a solid start. Now...what will you learn next?
In general, there are two types of files: text files and binary files.
Text files, like most code files, are easily tracked with Git and are very lightweight.
However, binary files like spreadsheets, presentations with slides, and videos don't work well with Git. If your repository already has some of these files, it's best to have a plan in place before you enable Git version control.
You could choose to remove the binary files, or use another tool like git-lfs (Git Large File Storage). We won't get into detail on how to set up git-lfs in this course, but we will talk about .gitignore
files next, which are key to protecting your code from becoming bloated with binaries.
.gitignore
As we convert your project to a Git repository, it should only include the source code necessary to build or compile your project. In addition to avoiding binaries as we discussed above, you will also want to keep build artifacts out of your version controlled code.
To do this, you will create a file in your current project named .gitignore
. Git will use the .gitignore
to determine which files and directories should not be tracked under version control. The .gitignore
file is stored in your repository in order to share the ignore rules with any other users that interact with the repository.
Since the files to be ignored are dependent on the language you are using, the open source community has contributed some great templates for .gitignore
files in the github/gitignore
repository.
.gitignore
file. You can use a template or create your own.When you are finished, close this issue. I will open a new issue with the next steps. ๐
๐ค I'm waiting for you to close this issue before moving on.
Uploading your project to GitHub gives you the feature-rich tools and collaboration needed to elevate your project to the next level. Not to mention, it's also pretty exciting. If you're doing this for the first time, you have a few options when uploading your project to GitHub. This course will guide you through the necessary steps to upload a local project to be hosted on GitHub.
I know some people like to get straight to the point while others like more information. For those who like more information, be sure to check out the drop-downs like this one โฌ๏ธ
You may be wondering what this GitHub thing is all about and why you should use it. If this sounds like you, here are a few reasons to make GitHub your project's new home:
Most users find it is easiest to upload a project that is already located on their local machine, so the goal of this first step is to make a local copy of the repository. First, let's make sure this course is going to give you the right steps:
If you are moving your project from another version control system, the steps are a bit different that uploading your project from your local machine. Because of this, we have a dedicated course for migrating your project to GitHub.
If you are moving your project from Mercurial, Subversion, or another Git platform, join the Migrating your project to GitHub course to migrate your project to GitHub.
If you aren't sure whether or not your code is under version control, it probably isn't. However, here are a few tests you can apply to know for certain:
If none of these are true, your project isn't using version control.
Choose the drop-down below that best fits your current situation.
โจ Terrific! @prateekvaish since you already have the project locally, you are almost ready to move it to GitHub.
To confirm: You have a project directory on your computer and you want to save it on GitHub.
If this is correct, close this issue to signal you are finished with this step. I will open a new issue to show you how to optimize your repository for Git operations.
If this is incorrect, please use the next drop-down to learn how to export your project to your local machine or join the Migrating your project to GitHub course to migrate your project to GitHub.
There are many platforms that allow users to create and store projects. We can't cover them all, but we will do our best to cover the more common examples. First, let's cover general instructions:
Now let's talk about specific platforms:
From the main page of your CodePen project:
From your Glitch project page:
app
folder as desiredClose this issue to signal you are finished with this step. I will open a new issue to show you how to optimize your repository for Git operations. ๐
๐ค I'm waiting for you to close the issue before moving on.
Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response from me, wait a few seconds and refresh the page for your next steps.
Having a project already stored locally enables you to move it to GitHub rather quickly. The following activity provides instructions to move your local project to GitHub using various tools. Select the tool you are most comfortable with and get importing ๐.
git init
to initialize the directory as a Git repository.git remote add origin https://github.com/prateekvaish/github-upload.git
git add .
git commit -m "initializing repository"
git push -u origin main
to push the files you have locally to the remote on GitHub. (You may be asked to log in.)Note: You can also use a password protected SSH key to connect to GitHub. See Connecting to GitHub with SSH in our documentation to learn more.
GitHub Desktop doesn't allow you to add a new remote for an existing directory, so instead we'll copy the contents of your existing folder to our repo. If you'd like to keep your existing folder, you may want to use the command line or one of the other tools.
git remote add origin https://github.com/prateekvaish/github-upload
git remote add origin https://github.com/prateekvaish/github-upload
๐ค Once you push your project to GitHub, I'll provide the next steps in your journey.
Right now, your repository is set to public.
You can change the visibility of a repository to Private or Public at any time in your repository's Settings tab, but there are some things you should know.
If your repository is private, the only people who can see your code are you and the collaborators ๐ you've invited.
In public repositories, anybody can see your code. Millions of open source repositories on GitHub are public, too!
Licenses, code of conduct, and other files are important when you create a public repository. There are many benefits to this, but it's also a large responsibility. Keep in mind that once a repository is public and open source, there are certain implications about keeping it public, depending on the license chosen.
It's important to note that public does not equal open source! The license associated with code determines whether or not it is open source.
๐ค I'm waiting for you to close this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.