GithubHelp home page GithubHelp logo

sumitroajiprabowo / funwithpython Goto Github PK

View Code? Open in Web Editor NEW

This project forked from manthanshettigar/funwithpython

0.0 1.0 0.0 336 KB

Contribute Open source python scripts , tools and projects .

Python 17.97% Jupyter Notebook 82.03%

funwithpython's Introduction

image

This Repository is a collection of scripts, games, bots, scraper and tools written in python

Prerequisite

Workflow for execution

Steps
  1. Clone the repository
  2. Change to any project directory
  3. Execute the python script Example:
git clone https://github.com/ManthanShettigar/FunWithPython.git
cd FunWithPython/black_jackgame
python blackjack.py

Workflow for contribution

Steps
  1. Star and fork the repository.
  2. Clone the repositry
git clone https://github.com/<YourUserName>/FunWithPython
  1. Add a remote for the original repository.
git remote add upstream https://github.com/ManthanShettigar/FunWithPython.git
  1. Navigate to the project and create a branch.
cd FunWithPython
git checkout -b <branch name>
  1. Add/Make the required changes and always fetch upstream changes to avoid merge conflicts
git pull upstream master
  1. Commit the changes.
git add <file name(s)>
git commit -m "Change Message"
  1. Push it to your repository
git push origin <branch name>
  1. Once pushed. check your repository.
  2. Clicking on contribute button you can open a pull request.
  3. Fill the details and click on Create pull request.

FAQ!

1.Why do merge confilcts occur

Ans. Suppose you forked the repository, now some other contributor who forked the same repository did some changes and added a PR , the maintainer will check it and finding no visible issues, will merge the PR to the main branch now the repository on your profile is frozen, the updates on the original repository don't reflect on the forked repository of your profile hence dont reflect on your local machine sice you cloned it before the changes. now since you create changes of your own in your local machine, and try to create a PR there will be a merge conflict because the original repository is ahead some changes which are not pulled down and implemented on your local machine,that is the reason of merge conflcits.

2. how to avoid merge conflicts ?

when you fork the repository there is a remote usually called 'origin' that is referencing to the forked repository on your profile. you have to add another remote usually called "upstream" that references the original repository , now before making any changes of your own, pull down changes made in the original repository using the command git pull upstream master and then the changes are reflected in your local machine now you can add changes and commit them CONFLICT-LESSLY.

3. do we create another feature branch or work on the main branch?

Yes,create a feature branch and work on that branch, don't make changes to the main/master branch.

funwithpython's People

Contributors

aliabbaso avatar anuroh619 avatar avirajdongare avatar captainadarshh avatar gaurang0405 avatar gaurangpm-19 avatar itashamodi avatar kiran-thilak avatar krishan821 avatar manthanshettigar avatar mukta-sawant avatar nis7538 avatar paiyarohit avatar pavithra-ks-06 avatar poorvaa18 avatar ritviksharma3 avatar salimcodes avatar shamelooo avatar shreyalytical avatar shubhamjha25 avatar toharsh avatar vatsalnilay avatar waxaranai avatar

Watchers

 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.