I New on github... Basically I Need help
Posted by Yamifem_duelist148@reddit | learnprogramming | View on Reddit | 13 comments
somebody can explain me the basic for use git hub??
Posted by Yamifem_duelist148@reddit | learnprogramming | View on Reddit | 13 comments
somebody can explain me the basic for use git hub??
Substantial-Law5166@reddit
github was invented to make programmers feel cool. It's a shorthand way of clicking file > save as. It essentially is just another stupid thing you have to learn to be a programmer.
HealyUnit@reddit
This comment is completely incorrect, and incredibly stupid.
grantrules@reddit
The internet has a wealth of resources and search engines put that information right at our fingertips. You can punch a question right into google and it'll practically answer it for you.
https://www.youtube.com/results?search_query=what%20is%20github
Sea-Film6715@reddit
Pro tip for new devs: youtube tutorials are great but also try making a test repo and just mess around with it - you learn faster when you break things and fix them yourself
malaszka@reddit
3 things mainly. Informally saying: beckup; publishing; cooperation.
1) "backup": Version control. ---> Save what you have done with your code. See what your changes had changed. Be able to go back to a historical point of the changes. Start different paths of code writing from a given state of your code.
2) "publish": You can make your codebase public. People can see it, use it. They can build it in the way they need it, in the form they need it, into their code/sytem/software that they want to integrate it.
3) "cooperation": You can allow other people to write into your code. They are not in charge, of course, so you can decide what changes to reject / accept / ask to be modified before accepting it. (Also, you can put further person in charge.)
Beregolas@reddit
Github is just a platform to host git repositories on.
Git is a version control system that we use to store code with a history, so if we make a mistake, we can revert to an earlier state, even partially. We also use to for collaboration, since two people can work on different versions (branches) at the same time, and reunify them later into a single version with relative ease.
Github as a platform is used to share code repositories with other people. This can be done to collaborate with a team, just to share the source code of something you wrote/published, to automatically build and publish code, e.g. as a website, to track issues you still need to work on, and to accept help from strangers, often in the form of "pull requests", where someone fixes something in an open source repository, and the owner can then accept that code to make the repository better.
Yamifem_duelist148@reddit (OP)
Thankssss, a last question... How can import a Git hub code to my code editor?
silverscrub@reddit
In your GitHub repo you can find a green clone button on the top right. Click it and choose your GitHub authentication method. I use a ssh key on my computer so I pick ssh. In your computer, run git clone. If you prefer your editor GUI there are options where the terminal is not needed, like New project from version control in IntelliJ.
aaronryder773@reddit
you clone the github repo to your computer and open it with your code editor
Curious_Acid@reddit
Github can be hard to understand, but the basics are pretty easy. In a way, github is just a place to keep track of your code and changes online.You make a repository (repo), which is your project then you make changes and save them (like saving your work). After that, you push your code to github so it can be uploaded you might use branches to try new things safely and pull requests to combine changes if you're working with other people. To be honest, the best way to learn is to just Make a repo, add a file, commit, and push.
It makes sense after you do it once.
silverscrub@reddit
The basic usage is creating a repository in GitHub and connecting your local git to the remote on GitHub. When you create the repository you receive instructions for this.
Then you decide your workflow. Either you develop directly on master/main or you develop on feature branches and do pull requests on GitHub to merge your changes.
GitHub has extensive docs for basic and advanced uses. Basically whatever you want to do has a step-by-step guide in GitHub docs.
Kenny-G-@reddit
I recommend this CS50W lecture on Git, it is the best explanation I know of: https://youtu.be/NcoBAfJ6l2Q?is=cx4JCci5I8Ap-7KY
Yamifem_duelist148@reddit (OP)
Thankssss