GithubHelp home page GithubHelp logo

abraham-ukachi / git-begins Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 28 KB

A repository created as part of a school assignment on Git & Github that contains ~4 jobs.

License: GNU General Public License v3.0

git git-branch git-clone git-fetch git-log git-merge git-pull git-push git-status github

git-begins's Introduction

git-begins

Author: Abraham Ukachi
School: La Plateforme_
Project: GIT (~4 jobs)

...and so it begins !!! ๐Ÿ˜ฑ๐Ÿ˜…

Git and Github are one of the most important-- if not the most important tool for computer geeks, IT students, programmers / developers, ...basically, anyone taking this field (ie. computer science) seriously MUST know how to use these tool.

As for me, I've been using git & github for a couple of years now before we started this course here at La Plateforme_. However, I had never dove deep into the nitty-gritty of this tool like I did during this course because I mostly used softwares or apps like WebStorm and Atom that handled a lot of those commands in the background.

One of the many things I learned in this course that I didn't really know before, believe it or not, was how to resolve merge conflicts in Git

How to resolve merge conflicts in Git

There are three ways to resolve a merge conflict in Git:

1. Accept the local version

To accept all changes on a file from the local version, run:

git checkout --ours <file name>

Alternatively, to accept the local version for all conflicting files, use:

git merge --strategy-option ours

2. Accept the remote version

To update the changes on a file from the remote branch, run:

git checkout --theirs <file name>

Accept the remote version for all conflicting files with:

git merge --strategy-option theirs

3. Review changes individually

The final option is to review each change separately. This option is also the best path to take, especially when working with multiple files and people. To make this job more manageable, use special tools to help review individual conflicts.

Ultimately, the choice of what parts of the code stay and which do not depends on the developer's decision for the current project.

git-begins's People

Contributors

abraham-ukachi avatar

Stargazers

 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.