Code Monkey home page Code Monkey logo

ws-git-github's Introduction

module title subtitle author version
B-INN-000
Git / Github
Introduction a git et github
Mathéo Martin & Xavier Mitaux
1.0

#newpage

Fork [Github]

  • fork this repository

Template [Github]

  • clone the repository you have forked

  • create a template that will be used when you will create an issue docs

  • create a template that will be used when you will create a pull requests docs

Template test [Github]

  • create an issue on your repository

  • create a branch named github/test-pull-requests

  • create a pull request on your repository (branch github/test-pull-requests -> main)

Branch [Git]

  • create a branch named dev

  • create a branch named feat/new-feature-a that starts from dev

  • create a file named CONTRIBUTING.md and git add+git commit this file

  • create a branch named feat/new-feature-b that starts from dev

  • create a file named CONTRIBUTING.md and git add+git commit this file

  • add some random characters to CONTRIBUTING.md and git add+git commit this file

  • create a branch named feat/new-feature-a-b that starts from feat/new-feature-a and merge feat/new-feature-b

for now, if you run:

#terminal(git log --cherry --boundary --decorate --color --oneline --graph --all)

it will be something like this:

imageCenter(TODO.png, 350px, 30)

  • push the branch feat/new-feature-a-b and create the pull requests (branch feat/new-feature-a-b -> main)

Rebase vs Merge [Git]

  • read more about Rebase vs Merge: stackoverflow stackoverflow

  • create a branch named feat/new-feature-a-b-rebase that starts from feat/new-feature-a and rebase feat/new-feature-b

re run the following command

#terminal(git log --cherry --boundary --decorate --color --oneline --graph --all)

  • enjoy the difference

Hooks [Git]

  • read more about hooks: git-scm

  • create a file named hooks/pre-commit and add the command to execute your norm check

  • create a file named hooks/pre-push and add the command make to be sure that your code is ready to be pushed

Github Actions [Github]

  • read more about Github Actions: github

  • create a workflow that will compile your code every time you push on a branch

  • create a workflow that will check your norm every time you create a pull request

  • create a workflow that open a issue when something goes wrong in your workflow

ws-git-github's People

Contributors

sergey111borisenko avatar beafowl-pull avatar saverio976 avatar

ws-git-github's Issues

serge issue

sergesergesergesergesergesergesergesergeserge

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.