Coder Social home page Coder Social logo

rizalmadani / easy-to-git Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidmatthewfraser/easy-to-git

0.0 0.0 0.0 34.69 MB

👩‍🔬 👨‍💻 A project designed to start you on your journey as an Open-source contributor

Home Page: http://easytogit.com/

License: MIT License

CSS 29.79% JavaScript 28.89% HTML 41.32%

easy-to-git's Introduction

What is Easy to Git?

  • Easy to Git is an open-source project that offers many ways to get started with Git and GitHub
  • More specifically, the master branch of this project is the code for www.easytogit.com where you can see the results of your contributions

What are the Goals?

  • Our main objective is to cultivate a community that supports one another in learning how to collaborate with version control
  • Note: this project is not monetized and never will be

Why should I get involved?

  • Git and GitHub are the industry standards for collaboration on coding projects, it is good to become familiar with these tools
  • Teamwork and collaboration are important skills ... and they can also be really fun! This project encourages both teamwork and collaboration. Further, we have a small, active community that is happy to work with you.
  • There are a lot of open-source projects out there and it can be hard to find one to get started with. This project offers several ways to start your journey as an open-source contributor.
  • There are GitHub projects that offer an easy way to make your first contribution. Further, this project offers fun and interactive challenges to get you even more comfortable using version control.

How to contribute (short version)

  • Pull requests are the way to go
  • Fork our project
  • git clone https://github.com/your-github-username/easy-to-git.git
  • cd easy-to-git
  • git branch checkout -b name-of-branch
  • Make your changes
  • git add file-1 file-2 ... file-n
  • git commit -m ‘descriptive/concise message’
  • git push origin master
  • Click 'compare and create pull request' on your forked GitHub repo
  • Click 'create pull request'

How to contribute (long version)

  1. Create a fork of the easy-to-git repo, this is what you will be making changes on. To create a fork, click the ‘fork’ button in the top right of the screen.

  2. You can create a copy or ‘clone’ of your ‘fork’ on your local machine using the ‘Git’ version control system. To use ‘Git’ on Linux or Mac, open up the ‘Terminal’ application. Linux users may need to install git using the command line. Windows users will need to install Git Bash to use Git. Once you have the ‘Terminal’ or ‘Git Bash’ opened, use git clone https://github.com/your-user-name/easy-to-git.git and navigate into this new directory with cd easy-to-git. Note that your-user-name is your GitHub username.

  3. The next step is to create a branch where you can make your changes. Type git branch into your terminal, this will display all the versions or branches of ‘easy-to-git’ on your local machine. For now, you should only see one branch: *master. You could start making changes to your ‘master branch’ but it is common practice to make all your changes on separate branches. To create a new branch use git checkout -b name-of-branch. Again run git branch and you should now see master and *name-of-branch. You can switch branches with git checkout any-branch. Note that you can delete a branch with git branch -d branch and force delete by using -D.

  4. Now you can make changes to your newly created branch. Open the 'Contributors.md' file with your favorite text editor, add your name, and save the changes. Note that running the command git status will show you all the files that you have changed.

  5. We will now add the changes on your ‘local’ machine to your ‘remote fork’ on GitHub. Tell git that you want to track changes made to the 'Contributors.md' file by using git add Contributors.md. Note that you can add changes to multiple files by listing all the modified files separated by a space: git add file1 file2 … fileN.

  6. Package up all the changes that GitHub is tracking with git commit -m ‘a message describing what you’ve changed’. Note that the message you associate with the commit is helpful for bookkeeping.

  7. Add your new branch with all its changes to your ‘remote fork’ (which Git calls ‘origin’) with git push origin name-of-branch. Your remote copy should now have a master branch and a branch called name-of-branch. You can toggle between them by clicking the branches button on your repository toolbar.

  8. Make sure the name-of-branch branch is selected and click 'compare & pull request'. This will open up a window where you can describe the changes you’ve made in more detail (which again is helpful for bookkeeping) and click 'create a pull request'. If there are no conflicts I will merge your changes with easy-to-git master.

Keeping your branches up to date

  • git remote add upstream https://github.com/DavidMatthewFraser/easy-to-git.git (you only need to do this once)
  • git fetch upstream
  • git merge upstream/master will merge upstream with your current branch, if there are conflicts you will have to resolve them

Resolving conflicts

  • Navigate to the files that have conflicts
  • A conflict in a file will look like this:
<<<<<<< HEAD
this is some text that conflicts with your text
here is some more conflicting text
=======
hey man why you gotta conflict with me
>>>>>>> name-of-branch
  • Here's an example of how you might edit the file to resolve the conflict
this is some text that conflicts with your text
here is some more conflicting text
hey man why you gotta conflict with me

What are starter projects that I can work on?

Before making any contributions to these projects, please read our CONTRIBUTING.md file that outlines our contributing policy.

  • Challenges: These are puzzles that are solved by modifying the HTML, CSS, and sometimes Javascript of the associated challenge files.

  • Contributor Panel: This displays the project’s contributors on the easy-to-git homepage and you can add your name and GitHub profile by modifying the contributorPanel.js file.

  • Homepage Themes: You can add your own custom theme to the easy-to-git homepage by modifying the themes.js file

  • Quiz Questions: To add some questions to the quiz open the quizQuestions.js file and add a question with some answers and add the correct answer. That’s it! You can add HTML, CSS or Javascript

  • Add useful links: This is a place to share any websites, videos, books, etc. that you would recommend to other developers. You add your own suggestions by modifying the Useful-links.html file.

What are the standards for pull requests?

What is the code of conduct enforced in this community?

I'm stuck, where can I find help?

  • You can ask any questions in on our Gitter chatroom

How can I contact the owner of this repository?

  • Hi, I’m David. I am active in on Gitter but you can also email me at [email protected]

easy-to-git's People

Contributors

davidmatthewfraser avatar terrifricker avatar syntappz avatar emmavz89 avatar logixmaster avatar misterybodon avatar sauravk7077 avatar randelldawson avatar avalojc avatar vj1224 avatar satyamrastogi avatar trevis42 avatar devansh3712 avatar nilax97 avatar rizalmadani avatar fort3 avatar boulderresident avatar unclebay143 avatar mrterranova avatar gwmatthews avatar jam-price avatar luke-h1 avatar shahinashanu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.