Giter VIP home page Giter VIP logo

mergefest's Introduction

Welcome to Mergefest

add this as the remote: git remote add upstream https://github.com/outdoola/mergefest

once you add this make sure your remote is there with git remote -v

  1. Edit this with your first name Hello!!.

Lets try to git pull upstream master and see what happens.

We have a merge conflict! Yay!

Let's reset to our last change by running git reset --hard HEAD

Now lets pull but take the master changes: git pull upstream master -s recursive -X theirs

(In your normal repos to get Jim's changes, use git pull upstream master -s recursive -X theirs)

  1. Edit this with your last name McChicken.

Now lets pull but take our local changes: git pull upstream master -s recursive -X ours

(In your normal repos to keep your changes, use git pull upstream master -s recursive -X ours)

  1. Edit this with your favorite fruit yo yo yo and your favorite song hi hi hi.

Also, write anything you want below this line. :)

/////////////

(I LOVE EDITSSSSS!)

/////////////\

Now lets pull but take both parts of our changes and their changes: git pull

Open your favorite text editor and follow along.

*Side note:

What is a .gitignore file?

It is a way to say, "just ignore these files in my git repo, pretend they don't exist to git." All you have to do is create a .gitignore file in the base of your git repo and add any file matching patterns to it. for example, you may just want to ignore all ipython notebook checkpoints or all mac specific files that aren't part of your code in that repo.

  • Check out gitignore.io. It will help you create .gitignore files. more on .gitignore
  • git reset --hard HEAD - will reset your git back to your last commit.
  • git clean -f - will remove extra files that aren't in version control.
  • git mergetool --tool=opendiff - (for mac) will put you in an "interactive merge conflict" tool. (pc alternative). more on mergetool

mergefest's People

Contributors

kevinmcalear avatar

Watchers

James Cloos avatar  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.