stephane777
9/1/2019 - 2:07 PM

Create Branch

Github workflow

  1. Create a branch

    git clone https://github.com/stephane777/github-slideshow.git

    cd github-slideshow

    git branch my-slideshow

    git push --set-upstream origin

  2. commit a file

    check what is the current branch git branch

    git checkout my-slide

    touch _posts/0000-01-02-stephane777.md

    cat _posts/0000-01-02-stephane777.md

    git add _posts/0000-01-02-stephane777.md

    git commit -m "add a new file"

    git push

  3. Open a pull request

make some change to the file

  1. Merge your pull request git checkout master

    git merge my-slide

    git push

// delete your branch locally git branch -d my-slide