Giter Site home page Giter Site logo

git-training's Introduction

Git-Training

Description

This repository will be used to practice different GIT commands and situations, please do not clone this repository, use a fork to have this repository as a base and be able to practice on the respective forks

There are folders for each exercise if you want to practice one of them go to the folder and read the instructions inside the folder, it will have the steps to be able to do it as well as the branches you will need

Work with a fork

What is a fork?

A fork is a copy of a repository, with forking you will be free to experiment with changes without affecting the original project.

Steps

  • Go to the origin repo on GitHub
  • In the top-right corner of the page, click Fork
    • Now you will have a copy of the original repo in your Github account
  • Clone your fork on your local machine.

Configuring a remote for a Fork.

You must configure a remote that points to the origin version of a repository(upstream) in Git to sync changes you make in that fork with the original repository, in this case we would use it mostly to update our fork.

  • Move to your fork
  • Open your terminal
  • git remote add upstream [email protected]:yodarjun/git-training.git
  • Verify the new upstream repository you've specified for your fork.
    • git remote -v

Update your fork

To get new branches:

  • git fetch upstream

To update master branch

  • git switch master
  • git rebase upstream/master
  • git push

git-training's People

Contributors

brian06 avatar kennethcalvo avatar wugalde19 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.