Code Monkey home page Code Monkey logo

krssg-git-sandbox's Introduction

KRSSG-git-sandbox

Task 1

Add your name to this list below 'Entries'.

  • Fork the repo, create a new branch (called Task1), make changes and send a pull request
    • This article should give you a good idea of what pull requests are how to use them.

Your entry should maintain alphabetic order and it should be in the format:

  • your name [username](http://github.com/username).
  • Your Pull Request must have only one commit (if there are multiple commits, you should squash them).
  • Only one file should be there in the diff of your Pull Request.

Entries

Sahil Jindal sahil132jindal

Task 2

After all of you send a Pull Request, I'll add my name to 'Entries'.

  • Configure a remote that points to the upstream repository in Git to sync changes you make in a fork with the original repository.
  • Try to merge upstream changes into your downstream repository. You'll get 'merge conflicts'.
  • Remove the merge conflicts and create another pull request.

Task 3

  • Create a new branch (called Task3) in your fork. Add a dummy piece of code and push it to the current branch.
  • You've now realized that you pushed something wrong. Instead of removing the commit altogether, push another commit that will undo the changes made.
  • Create a pull request.

Why not remove the commit altogether?
This prevents Git from losing history, which is important for the integrity of your revision history and for reliable collaboration.

Task 4

  • Create a new branch (called Task4) in your fork. Add a dummy piece of code and push it to the current branch.
  • You've now realized that you've pushed something that is not only wrong but also stupid. You regret it so much that you want the commit to vanish altogether. Use reset to remove this commit.

Task 5

  • Create a new branch (called Task5) in your fork. Add a dummy piece of code and commit it to this branch. Do this 5 more times.
  • Now you want to remove some intermediate commits. Remove commit no. 2 and 4 using rebase.
  • Push all the commits into Task5 and create a Pull Request.

Some guidelines for the tasks:

  • Your Pull Request must be rebased on the latest master.
  • This commit must have a message that is explanatory. For eg. for Task 1: Add name to README (Name here).
  • Name of the PR must be informative. For eg. for Task 1: (Task1) Add my name to the README (Name here).

krssg-git-sandbox's People

Contributors

sahil132jindal 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.