Skip to content
Snippets Groups Projects
Select Git revision
  • f81a791a82f09551862657c46a4f0b57077219dd
  • main default protected
  • develop
3 results

week45-version-control

  • Clone with SSH
  • Clone with HTTPS
  • Name Last commit Last update
    README.md
    index.html

    Main brach

    Steps taken:

    $ touch README.md

    $ nano README.md

    $ git add README.md

    $ git commit -m "Initial commit"

    $ git push --set-upstream origin main

    $ touch index.html

    $ code .

    $ git add .

    $ git commit -m "Add HTML"

    $ git push --set-upstream origin main

    $ git checkout -b develop

    $ nano README.md

    $ git add .

    $ git commit -m "Changes made in develop branch"

    $ git push --set-upstream origin develop

    $ git checkout -b feature

    $ touch newFeature.js

    $ code .

    $ git add .

    $ git commit -m "Add new feature"

    $ git push --set-upstream origin feature

    Here i merged feature to develop

    $ git checkout main

    $ git checkout -b release

    $ nano index.html

    $ git add .

    $ git commit -m "Bugfixes"

    $ git push --set-upstream origin release

    Here i merged release to main